home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1992-10-16 | 15.1 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| MS-DOS Code Page Info (other/dosCodePage)
| ext
| Unsupported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Fri Oct 16 18:27:24 1992, modified Fri Oct 16 18:27:24 1992, creator 'MPS ', type ASCII, 14038 bytes "Application.cp" , at 0x3756 1170 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 41 70 70 6c 69 63 | 61 74 69 6f 6e 2e 63 70 |..Applic|ation.cp|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 36 d6 00 | 00 04 92 a7 04 f2 4c a7 |.....6..|......L.|
|00000060| 04 f2 4c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..L.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 58 b1 00 00 |........|....X...|
|00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0d 09 50 |--------|----...P|
|000000e0| 72 6f 67 72 61 6d 3a 09 | 43 50 6c 75 73 54 45 53 |rogram:.|CPlusTES|
|000000f0| 61 6d 70 6c 65 20 32 2e | 30 41 45 0d 09 46 69 6c |ample 2.|0AE..Fil|
|00000100| 65 3a 09 09 41 70 70 6c | 69 63 61 74 69 6f 6e 2e |e:..Appl|ication.|
|00000110| 63 70 0d 20 20 20 20 55 | 73 65 73 3a 20 20 20 20 |cp. U|ses: |
|00000120| 20 20 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 2e 68 | Appli|cation.h|
|00000130| 0d 09 20 20 20 20 20 20 | 20 20 20 20 20 20 44 6f |.. | Do|
|00000140| 63 75 6d 65 6e 74 2e 68 | 0d 0d 09 62 79 20 41 6e |cument.h|...by An|
|00000150| 64 72 65 77 20 53 68 65 | 62 61 6e 6f 77 0d 09 6f |drew She|banow..o|
|00000160| 66 20 41 70 70 6c 65 20 | 4d 61 63 69 6e 74 6f 73 |f Apple |Macintos|
|00000170| 68 20 44 65 76 65 6c 6f | 70 65 72 20 54 65 63 68 |h Develo|per Tech|
|00000180| 6e 69 63 61 6c 20 53 75 | 70 70 6f 72 74 0d 09 77 |nical Su|pport..w|
|00000190| 69 74 68 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e |ith modi|fication|
|000001a0| 73 20 62 79 20 45 72 69 | 63 20 42 65 72 64 61 68 |s by Eri|c Berdah|
|000001b0| 6c 0d 0d 09 43 6f 70 79 | 72 69 67 68 74 20 a9 20 |l...Copy|right . |
|000001c0| 31 39 38 39 2d 31 39 39 | 30 20 41 70 70 6c 65 20 |1989-199|0 Apple |
|000001d0| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 0d 09 |Computer|, Inc...|
|000001e0| 43 6f 70 79 72 69 67 68 | 74 20 a9 20 31 39 39 32 |Copyrigh|t . 1992|
|000001f0| 20 45 72 69 63 20 42 65 | 72 64 61 68 6c 0d 09 41 | Eric Be|rdahl..A|
|00000200| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00000210| 65 64 2e 0d 0d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ed...---|--------|
|00000220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000240| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000250| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000260| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |--------|-------*|
|00000270| 2f 0d 0d 2f 2f 20 4d 61 | 63 20 49 6e 63 6c 75 64 |/..// Ma|c Includ|
|00000280| 65 73 0d 23 69 66 6e 64 | 65 66 20 5f 5f 54 59 50 |es.#ifnd|ef __TYP|
|00000290| 45 53 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 3c 54 |ES__.#in|clude <T|
|000002a0| 79 70 65 73 2e 68 3e 0d | 23 65 6e 64 69 66 0d 23 |ypes.h>.|#endif.#|
|000002b0| 69 66 6e 64 65 66 20 5f | 5f 51 55 49 43 4b 44 52 |ifndef _|_QUICKDR|
|000002c0| 41 57 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 3c 51 |AW__.#in|clude <Q|
|000002d0| 75 69 63 6b 44 72 61 77 | 2e 68 3e 0d 23 65 6e 64 |uickDraw|.h>.#end|
|000002e0| 69 66 0d 23 69 66 6e 64 | 65 66 20 5f 5f 46 4f 4e |if.#ifnd|ef __FON|
|000002f0| 54 53 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 3c 46 |TS__.#in|clude <F|
|00000300| 6f 6e 74 73 2e 68 3e 0d | 23 65 6e 64 69 66 0d 23 |onts.h>.|#endif.#|
|00000310| 69 66 6e 64 65 66 20 5f | 5f 45 56 45 4e 54 53 5f |ifndef _|_EVENTS_|
|00000320| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 3c 45 76 65 6e |_.#inclu|de <Even|
|00000330| 74 73 2e 68 3e 0d 23 65 | 6e 64 69 66 0d 23 69 66 |ts.h>.#e|ndif.#if|
|00000340| 6e 64 65 66 20 5f 5f 43 | 4f 4e 54 52 4f 4c 53 5f |ndef __C|ONTROLS_|
|00000350| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 3c 43 6f 6e 74 |_.#inclu|de <Cont|
|00000360| 72 6f 6c 73 2e 68 3e 0d | 23 65 6e 64 69 66 0d 23 |rols.h>.|#endif.#|
|00000370| 69 66 6e 64 65 66 20 5f | 5f 57 49 4e 44 4f 57 53 |ifndef _|_WINDOWS|
|00000380| 5f 5f 0d 23 69 6e 63 6c | 75 64 65 20 3c 57 69 6e |__.#incl|ude <Win|
|00000390| 64 6f 77 73 2e 68 3e 0d | 23 65 6e 64 69 66 0d 23 |dows.h>.|#endif.#|
|000003a0| 69 66 6e 64 65 66 20 5f | 5f 52 45 53 4f 55 52 43 |ifndef _|_RESOURC|
|000003b0| 45 53 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 3c 52 |ES__.#in|clude <R|
|000003c0| 65 73 6f 75 72 63 65 73 | 2e 68 3e 0d 23 65 6e 64 |esources|.h>.#end|
|000003d0| 69 66 0d 23 69 66 6e 64 | 65 66 20 5f 5f 4d 45 4e |if.#ifnd|ef __MEN|
|000003e0| 55 53 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 3c 4d |US__.#in|clude <M|
|000003f0| 65 6e 75 73 2e 68 3e 0d | 23 65 6e 64 69 66 0d 23 |enus.h>.|#endif.#|
|00000400| 69 66 6e 64 65 66 20 5f | 5f 54 45 58 54 45 44 49 |ifndef _|_TEXTEDI|
|00000410| 54 5f 5f 0d 23 69 6e 63 | 6c 75 64 65 20 3c 54 65 |T__.#inc|lude <Te|
|00000420| 78 74 45 64 69 74 2e 68 | 3e 0d 23 65 6e 64 69 66 |xtEdit.h|>.#endif|
|00000430| 0d 23 69 66 6e 64 65 66 | 20 5f 5f 44 49 41 4c 4f |.#ifndef| __DIALO|
|00000440| 47 53 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 3c 44 |GS__.#in|clude <D|
|00000450| 69 61 6c 6f 67 73 2e 68 | 3e 0d 23 65 6e 64 69 66 |ialogs.h|>.#endif|
|00000460| 0d 23 69 66 6e 64 65 66 | 20 5f 5f 44 45 53 4b 5f |.#ifndef| __DESK_|
|00000470| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 3c 44 65 73 6b |_.#inclu|de <Desk|
|00000480| 2e 68 3e 0d 23 65 6e 64 | 69 66 0d 23 69 66 6e 64 |.h>.#end|if.#ifnd|
|00000490| 65 66 20 5f 5f 53 43 52 | 41 50 5f 5f 0d 23 69 6e |ef __SCR|AP__.#in|
|000004a0| 63 6c 75 64 65 20 3c 53 | 63 72 61 70 2e 68 3e 0d |clude <S|crap.h>.|
|000004b0| 23 65 6e 64 69 66 0d 23 | 69 66 6e 64 65 66 20 5f |#endif.#|ifndef _|
|000004c0| 5f 54 4f 4f 4c 55 54 49 | 4c 53 5f 5f 0d 23 69 6e |_TOOLUTI|LS__.#in|
|000004d0| 63 6c 75 64 65 20 3c 54 | 6f 6f 6c 55 74 69 6c 73 |clude <T|oolUtils|
|000004e0| 2e 68 3e 0d 23 65 6e 64 | 69 66 0d 23 69 66 6e 64 |.h>.#end|if.#ifnd|
|000004f0| 65 66 20 5f 5f 4d 45 4d | 4f 52 59 5f 5f 0d 23 69 |ef __MEM|ORY__.#i|
|00000500| 6e 63 6c 75 64 65 20 3c | 4d 65 6d 6f 72 79 2e 68 |nclude <|Memory.h|
|00000510| 3e 0d 23 65 6e 64 69 66 | 0d 23 69 66 6e 64 65 66 |>.#endif|.#ifndef|
|00000520| 20 5f 5f 53 45 47 4c 4f | 41 44 5f 5f 0d 23 69 6e | __SEGLO|AD__.#in|
|00000530| 63 6c 75 64 65 20 3c 53 | 65 67 4c 6f 61 64 2e 68 |clude <S|egLoad.h|
|00000540| 3e 0d 23 65 6e 64 69 66 | 0d 23 69 66 6e 64 65 66 |>.#endif|.#ifndef|
|00000550| 20 5f 5f 46 49 4c 45 53 | 5f 5f 0d 23 69 6e 63 6c | __FILES|__.#incl|
|00000560| 75 64 65 20 3c 46 69 6c | 65 73 2e 68 3e 0d 23 65 |ude <Fil|es.h>.#e|
|00000570| 6e 64 69 66 0d 23 69 66 | 6e 64 65 66 20 5f 5f 4f |ndif.#if|ndef __O|
|00000580| 53 55 54 49 4c 53 5f 5f | 0d 23 69 6e 63 6c 75 64 |SUTILS__|.#includ|
|00000590| 65 20 3c 4f 53 55 74 69 | 6c 73 2e 68 3e 0d 23 65 |e <OSUti|ls.h>.#e|
|000005a0| 6e 64 69 66 0d 23 69 66 | 6e 64 65 66 20 5f 5f 54 |ndif.#if|ndef __T|
|000005b0| 52 41 50 53 5f 5f 0d 23 | 69 6e 63 6c 75 64 65 20 |RAPS__.#|include |
|000005c0| 3c 54 72 61 70 73 2e 68 | 3e 0d 23 65 6e 64 69 66 |<Traps.h|>.#endif|
|000005d0| 0d 0d 23 69 66 6e 64 65 | 66 20 5f 5f 41 50 50 4c |..#ifnde|f __APPL|
|000005e0| 49 43 41 54 49 4f 4e 5f | 5f 0d 23 69 6e 63 6c 75 |ICATION_|_.#inclu|
|000005f0| 64 65 20 22 41 70 70 6c | 69 63 61 74 69 6f 6e 2e |de "Appl|ication.|
|00000600| 68 22 0d 23 65 6e 64 69 | 66 0d 0d 23 69 66 6e 64 |h".#endi|f..#ifnd|
|00000610| 65 66 20 5f 5f 44 4f 43 | 55 4d 45 4e 54 5f 5f 0d |ef __DOC|UMENT__.|
|00000620| 23 69 6e 63 6c 75 64 65 | 20 22 44 6f 63 75 6d 65 |#include| "Docume|
|00000630| 6e 74 2e 68 22 0d 23 65 | 6e 64 69 66 0d 0d 2f 2f |nt.h".#e|ndif..//|
|00000640| 20 4f 53 45 76 65 6e 74 | 20 69 73 20 74 68 65 20 | OSEvent| is the |
|00000650| 65 76 65 6e 74 20 6e 75 | 6d 62 65 72 20 6f 66 20 |event nu|mber of |
|00000660| 74 68 65 20 73 75 73 70 | 65 6e 64 2f 72 65 73 75 |the susp|end/resu|
|00000670| 6d 65 20 61 6e 64 20 6d | 6f 75 73 65 2d 6d 6f 76 |me and m|ouse-mov|
|00000680| 65 64 20 65 76 65 6e 74 | 73 20 73 65 6e 74 0d 2f |ed event|s sent./|
|00000690| 2f 20 62 79 20 4d 75 6c | 74 69 46 69 6e 64 65 72 |/ by Mul|tiFinder|
|000006a0| 2e 20 4f 6e 63 65 20 77 | 65 20 64 65 74 65 72 6d |. Once w|e determ|
|000006b0| 69 6e 65 20 74 68 61 74 | 20 61 6e 20 65 76 65 6e |ine that| an even|
|000006c0| 74 20 69 73 20 61 6e 20 | 6f 73 45 76 65 6e 74 2c |t is an |osEvent,|
|000006d0| 20 77 65 20 6c 6f 6f 6b | 20 61 74 20 74 68 65 0d | we look| at the.|
|000006e0| 2f 2f 20 68 69 67 68 20 | 62 79 74 65 20 6f 66 20 |// high |byte of |
|000006f0| 74 68 65 20 6d 65 73 73 | 61 67 65 20 73 65 6e 74 |the mess|age sent|
|00000700| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 77 68 | to dete|rmine wh|
|00000710| 69 63 68 20 6b 69 6e 64 | 20 69 74 20 69 73 2e 20 |ich kind| it is. |
|00000720| 54 6f 20 64 69 66 66 65 | 72 65 6e 74 69 61 74 65 |To diffe|rentiate|
|00000730| 0d 2f 2f 20 73 75 73 70 | 65 6e 64 20 61 6e 64 20 |.// susp|end and |
|00000740| 72 65 73 75 6d 65 20 65 | 76 65 6e 74 73 20 77 65 |resume e|vents we|
|00000750| 20 63 68 65 63 6b 20 74 | 68 65 20 72 65 73 75 6d | check t|he resum|
|00000760| 65 4d 61 73 6b 20 62 69 | 74 2e 0d 63 6f 6e 73 74 |eMask bi|t..const|
|00000770| 20 73 68 6f 72 74 20 6b | 4f 73 45 76 65 6e 74 20 | short k|OsEvent |
|00000780| 3d 20 61 70 70 34 45 76 | 74 3b 09 09 09 09 2f 2f |= app4Ev|t;....//|
|00000790| 20 65 76 65 6e 74 20 75 | 73 65 64 20 62 79 20 4d | event u|sed by M|
|000007a0| 75 6c 74 69 46 69 6e 64 | 65 72 0d 63 6f 6e 73 74 |ultiFind|er.const|
|000007b0| 20 73 68 6f 72 74 20 6b | 53 75 73 70 65 6e 64 52 | short k|SuspendR|
|000007c0| 65 73 75 6d 65 4d 65 73 | 73 61 67 65 20 3d 20 30 |esumeMes|sage = 0|
|000007d0| 78 30 31 3b 09 2f 2f 20 | 68 69 67 68 20 62 79 74 |x01;.// |high byt|
|000007e0| 65 20 6f 66 20 73 75 73 | 70 65 6e 64 2f 72 65 73 |e of sus|pend/res|
|000007f0| 75 6d 65 20 65 76 65 6e | 74 20 6d 65 73 73 61 67 |ume even|t messag|
|00000800| 65 0d 63 6f 6e 73 74 20 | 73 68 6f 72 74 20 6b 43 |e.const |short kC|
|00000810| 6c 69 70 43 6f 6e 76 65 | 72 74 4d 61 73 6b 20 3d |lipConve|rtMask =|
|00000820| 20 30 78 30 32 3b 09 09 | 2f 2f 20 62 69 74 20 6f | 0x02;..|// bit o|
|00000830| 66 20 6d 65 73 73 61 67 | 65 20 66 69 65 6c 64 20 |f messag|e field |
|00000840| 63 6c 69 70 20 63 6f 6e | 76 65 72 73 69 6f 6e 0d |clip con|version.|
|00000850| 63 6f 6e 73 74 20 73 68 | 6f 72 74 20 6b 52 65 73 |const sh|ort kRes|
|00000860| 75 6d 65 4d 61 73 6b 20 | 3d 20 30 78 30 31 3b 09 |umeMask |= 0x01;.|
|00000870| 09 09 09 2f 2f 20 62 69 | 74 20 6f 66 20 6d 65 73 |...// bi|t of mes|
|00000880| 73 61 67 65 20 66 69 65 | 6c 64 20 66 6f 72 20 72 |sage fie|ld for r|
|00000890| 65 73 75 6d 65 20 76 73 | 2e 20 73 75 73 70 65 6e |esume vs|. suspen|
|000008a0| 64 0d 63 6f 6e 73 74 20 | 73 68 6f 72 74 20 6b 4d |d.const |short kM|
|000008b0| 6f 75 73 65 4d 6f 76 65 | 64 4d 65 73 73 61 67 65 |ouseMove|dMessage|
|000008c0| 20 3d 20 30 78 46 41 3b | 09 09 2f 2f 20 68 69 67 | = 0xFA;|..// hig|
|000008d0| 68 20 62 79 74 65 20 6f | 66 20 6d 6f 75 73 65 2d |h byte o|f mouse-|
|000008e0| 6d 6f 76 65 64 20 65 76 | 65 6e 74 20 6d 65 73 73 |moved ev|ent mess|
|000008f0| 61 67 65 0d 0d 65 78 74 | 65 72 6e 20 22 43 22 20 |age..ext|ern "C" |
|00000900| 7b 0d 09 2f 2f 20 66 72 | 6f 6d 20 4d 50 57 20 73 |{..// fr|om MPW s|
|00000910| 74 61 6e 64 61 72 64 20 | 6c 69 62 72 61 72 79 0d |tandard |library.|
|00000920| 09 76 6f 69 64 20 5f 44 | 61 74 61 49 6e 69 74 28 |.void _D|ataInit(|
|00000930| 29 3b 09 09 09 09 2f 2f | 20 73 65 74 73 20 75 70 |);....//| sets up|
|00000940| 20 41 35 20 67 6c 6f 62 | 61 6c 73 0d 7d 3b 0d 0d | A5 glob|als.};..|
|00000950| 2f 2f 20 75 73 65 66 75 | 6c 20 73 74 61 74 65 20 |// usefu|l state |
|00000960| 63 68 65 63 6b 69 6e 67 | 20 42 6f 6f 6c 65 61 6e |checking| Boolean|
|00000970| 0d 42 6f 6f 6c 65 61 6e | 20 67 48 61 76 65 43 6f |.Boolean| gHaveCo|
|00000980| 6c 6f 72 51 44 3b 0d 0d | 2f 2f 20 6a 75 73 74 20 |lorQD;..|// just |
|00000990| 61 73 20 22 6e 6f 72 6d | 61 6c 22 20 67 6c 6f 62 |as "norm|al" glob|
|000009a0| 61 6c 20 76 61 72 69 61 | 62 6c 65 73 20 74 68 61 |al varia|bles tha|
|000009b0| 74 20 61 72 65 20 64 65 | 63 6c 61 72 65 64 20 65 |t are de|clared e|
|000009c0| 78 74 65 72 6e 20 69 6e | 0d 2f 2f 20 68 65 61 64 |xtern in|.// head|
|000009d0| 65 72 20 66 69 6c 65 73 | 20 6d 75 73 74 20 73 74 |er files| must st|
|000009e0| 69 6c 6c 20 62 65 20 64 | 65 63 6c 61 72 65 64 20 |ill be d|eclared |
|000009f0| 73 6f 6d 65 77 68 65 72 | 65 20 69 6e 20 6f 72 64 |somewher|e in ord|
|00000a00| 65 72 20 74 6f 20 72 65 | 73 65 72 76 65 0d 2f 2f |er to re|serve.//|
|00000a10| 20 73 70 61 63 65 2c 20 | 73 74 61 74 69 63 20 63 | space, |static c|
|00000a20| 6c 61 73 73 20 76 61 72 | 69 61 62 6c 65 73 20 6d |lass var|iables m|
|00000a30| 75 73 74 20 61 6c 73 6f | 20 62 65 20 64 65 63 6c |ust also| be decl|
|00000a40| 61 72 65 64 20 6f 75 74 | 73 69 64 65 20 6f 66 0d |ared out|side of.|
|00000a50| 2f 2f 20 74 68 65 20 63 | 6c 61 73 73 20 64 65 66 |// the c|lass def|
|00000a60| 69 6e 69 74 69 6f 6e 2e | 20 54 68 65 20 73 79 6e |inition.| The syn|
|00000a70| 74 61 78 20 69 73 20 63 | 6f 6e 66 75 73 69 6e 67 |tax is c|onfusing|
|00000a80| 2c 20 62 75 74 20 74 68 | 65 6e 2c 20 74 68 61 74 |, but th|en, that|
|00000a90| 73 0d 2f 2f 20 77 68 61 | 74 20 6d 61 6b 65 73 20 |s.// wha|t makes |
|00000aa0| 43 2b 2b 20 73 6f 20 2a | 2a 2a 69 6e 74 65 72 65 |C++ so *|**intere|
|00000ab0| 73 74 69 6e 67 2a 2a 2a | 2e 0d 4f 53 54 79 70 65 |sting***|..OSType|
|00000ac0| 20 54 41 70 70 6c 69 63 | 61 74 69 6f 6e 3a 3a 66 | TApplic|ation::f|
|00000ad0| 43 72 65 61 74 6f 72 3b | 0d 42 6f 6f 6c 65 61 6e |Creator;|.Boolean|
|00000ae0| 09 54 41 70 70 6c 69 63 | 61 74 69 6f 6e 3a 3a 66 |.TApplic|ation::f|
|00000af0| 48 61 76 65 57 61 69 74 | 4e 65 78 74 45 76 65 6e |HaveWait|NextEven|
|00000b00| 74 3b 0d 42 6f 6f 6c 65 | 61 6e 09 54 41 70 70 6c |t;.Boole|an.TAppl|
|00000b10| 69 63 61 74 69 6f 6e 3a | 3a 66 4f 6e 53 79 73 74 |ication:|:fOnSyst|
|00000b20| 65 6d 37 3b 0d 54 41 70 | 70 6c 69 63 61 74 69 6f |em7;.TAp|plicatio|
|00000b30| 6e 2a 20 54 41 70 70 6c | 69 63 61 74 69 6f 6e 3a |n* TAppl|ication:|
|00000b40| 3a 67 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 3d 20 |:gApplic|ation = |
|00000b50| 6e 69 6c 3b 0d 0d 54 41 | 70 70 6c 69 63 61 74 69 |nil;..TA|pplicati|
|00000b60| 6f 6e 3a 3a 54 41 70 70 | 6c 69 63 61 74 69 6f 6e |on::TApp|lication|
|00000b70| 28 4f 53 54 79 70 65 20 | 63 72 65 61 74 6f 72 29 |(OSType |creator)|
|00000b80| 0d 7b 0d 09 53 79 73 45 | 6e 76 52 65 63 20 65 6e |.{..SysE|nvRec en|
|00000b90| 76 52 65 63 3b 0d 09 6c | 6f 6e 67 20 73 74 6b 4e |vRec;..l|ong stkN|
|00000ba0| 65 65 64 65 64 3b 0d 09 | 6c 6f 6e 67 20 68 65 61 |eeded;..|long hea|
|00000bb0| 70 53 69 7a 65 3b 0d 0d | 09 2f 2f 20 69 6e 69 74 |pSize;..|.// init|
|00000bc0| 69 61 6c 69 7a 65 20 74 | 68 65 20 67 6c 6f 62 61 |ialize t|he globa|
|00000bd0| 6c 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 76 61 |l applic|ation va|
|00000be0| 72 69 61 62 6c 65 0d 09 | 67 41 70 70 6c 69 63 61 |riable..|gApplica|
|00000bf0| 74 69 6f 6e 20 3d 20 74 | 68 69 73 3b 0d 0d 09 2f |tion = t|his;.../|
|00000c00| 2f 20 69 6e 69 74 69 61 | 6c 69 7a 65 20 4d 61 63 |/ initia|lize Mac|
|00000c10| 20 54 6f 6f 6c 62 6f 78 | 20 63 6f 6d 70 6f 6e 65 | Toolbox| compone|
|00000c20| 6e 74 73 0d 09 49 6e 69 | 74 47 72 61 66 28 28 50 |nts..Ini|tGraf((P|
|00000c30| 74 72 29 20 26 71 64 2e | 74 68 65 50 6f 72 74 29 |tr) &qd.|thePort)|
|00000c40| 3b 0d 09 49 6e 69 74 46 | 6f 6e 74 73 28 29 3b 0d |;..InitF|onts();.|
|00000c50| 09 49 6e 69 74 57 69 6e | 64 6f 77 73 28 29 3b 0d |.InitWin|dows();.|
|00000c60| 09 49 6e 69 74 4d 65 6e | 75 73 28 29 3b 0d 09 54 |.InitMen|us();..T|
|00000c70| 45 49 6e 69 74 28 29 3b | 0d 09 49 6e 69 74 44 69 |EInit();|..InitDi|
|00000c80| 61 6c 6f 67 73 28 28 52 | 65 73 75 6d 65 50 72 6f |alogs((R|esumePro|
|00000c90| 63 50 74 72 29 20 6e 69 | 6c 29 3b 0d 09 49 6e 69 |cPtr) ni|l);..Ini|
|00000ca0| 74 43 75 72 73 6f 72 28 | 29 3b 0d 0d 09 2f 2f 20 |tCursor(|);...// |
|00000cb0| 55 6e 6c 6f 61 64 20 64 | 61 74 61 20 73 65 67 6d |Unload d|ata segm|
|00000cc0| 65 6e 74 3a 20 6e 6f 74 | 65 20 74 68 61 74 20 5f |ent: not|e that _|
|00000cd0| 44 61 74 61 49 6e 69 74 | 20 6d 75 73 74 20 6e 6f |DataInit| must no|
|00000ce0| 74 20 62 65 20 69 6e 20 | 4d 61 69 6e 21 0d 09 55 |t be in |Main!..U|
|00000cf0| 6e 6c 6f 61 64 53 65 67 | 28 28 50 72 6f 63 50 74 |nloadSeg|((ProcPt|
|00000d00| 72 29 20 5f 44 61 74 61 | 49 6e 69 74 29 3b 0d 0d |r) _Data|Init);..|
|00000d10| 09 2f 2f 20 69 67 6e 6f | 72 65 20 74 68 65 20 65 |.// igno|re the e|
|00000d20| 72 72 6f 72 20 72 65 74 | 75 72 6e 65 64 20 66 72 |rror ret|urned fr|
|00000d30| 6f 6d 20 53 79 73 45 6e | 76 69 72 6f 6e 73 3b 20 |om SysEn|virons; |
|00000d40| 65 76 65 6e 20 69 66 20 | 61 6e 20 65 72 72 6f 72 |even if |an error|
|00000d50| 20 6f 63 63 75 72 72 65 | 64 2c 0d 09 2f 2f 20 74 | occurre|d,..// t|
|00000d60| 68 65 20 53 79 73 45 6e | 76 69 72 6f 6e 73 20 67 |he SysEn|virons g|
|00000d70| 6c 75 65 20 77 69 6c 6c | 20 66 69 6c 6c 20 69 6e |lue will| fill in|
|00000d80| 20 74 68 65 20 53 79 73 | 45 6e 76 52 65 63 0d 09 | the Sys|EnvRec..|
|00000d90| 28 76 6f 69 64 29 20 53 | 79 73 45 6e 76 69 72 6f |(void) S|ysEnviro|
|00000da0| 6e 73 28 63 75 72 53 79 | 73 45 6e 76 56 65 72 73 |ns(curSy|sEnvVers|
|00000db0| 2c 20 26 65 6e 76 52 65 | 63 29 3b 0d 0d 09 2f 2f |, &envRe|c);...//|
|00000dc0| 20 41 72 65 20 77 65 20 | 72 75 6e 6e 69 6e 67 20 | Are we |running |
|00000dd0| 6f 6e 20 61 20 31 32 38 | 4b 20 52 4f 4d 20 6d 61 |on a 128|K ROM ma|
|00000de0| 63 68 69 6e 65 20 6f 72 | 20 62 65 74 74 65 72 3f |chine or| better?|
|00000df0| 3f 3f 0d 09 69 66 20 28 | 65 6e 76 52 65 63 2e 6d |??..if (|envRec.m|
|00000e00| 61 63 68 69 6e 65 54 79 | 70 65 20 3c 20 30 29 0d |achineTy|pe < 0).|
|00000e10| 09 20 20 42 69 67 42 61 | 64 45 72 72 6f 72 28 6b |. BigBa|dError(k|
|00000e20| 45 72 72 53 74 72 69 6e | 67 73 2c 65 57 72 6f 6e |ErrStrin|gs,eWron|
|00000e30| 67 4d 61 63 68 69 6e 65 | 29 3b 09 09 2f 2f 20 69 |gMachine|);..// i|
|00000e40| 66 20 6e 6f 74 2c 20 61 | 6c 65 72 74 20 26 20 71 |f not, a|lert & q|
|00000e50| 75 69 74 0d 0d 09 67 48 | 61 76 65 43 6f 6c 6f 72 |uit...gH|aveColor|
|00000e60| 51 44 20 3d 20 65 6e 76 | 52 65 63 2e 68 61 73 43 |QD = env|Rec.hasC|
|00000e70| 6f 6c 6f 72 51 44 3b 0d | 0d 09 66 4f 6e 53 79 73 |olorQD;.|..fOnSys|
|00000e80| 74 65 6d 37 20 3d 20 28 | 65 6e 76 52 65 63 2e 73 |tem7 = (|envRec.s|
|00000e90| 79 73 74 65 6d 56 65 72 | 73 69 6f 6e 20 3e 3d 20 |ystemVer|sion >= |
|00000ea0| 30 78 30 37 30 30 29 3b | 0d 0d 09 2f 2f 20 69 66 |0x0700);|...// if|
|00000eb0| 20 77 65 20 6e 65 65 64 | 20 6d 6f 72 65 20 73 74 | we need| more st|
|00000ec0| 61 63 6b 20 73 70 61 63 | 65 2c 20 67 65 74 20 69 |ack spac|e, get i|
|00000ed0| 74 20 6e 6f 77 0d 09 73 | 74 6b 4e 65 65 64 65 64 |t now..s|tkNeeded|
|00000ee0| 20 3d 20 53 74 61 63 6b | 4e 65 65 64 65 64 28 29 | = Stack|Needed()|
|00000ef0| 3b 0d 09 69 66 20 28 73 | 74 6b 4e 65 65 64 65 64 |;..if (s|tkNeeded|
|00000f00| 20 3e 20 53 74 61 63 6b | 53 70 61 63 65 28 29 29 | > Stack|Space())|
|00000f10| 0d 09 20 20 7b 0d 09 09 | 2f 2f 20 6e 65 77 20 61 |.. {...|// new a|
|00000f20| 64 64 72 65 73 73 20 69 | 73 20 68 65 61 70 20 73 |ddress i|s heap s|
|00000f30| 69 7a 65 20 2b 20 63 75 | 72 72 65 6e 74 20 73 74 |ize + cu|rrent st|
|00000f40| 61 63 6b 20 2d 20 6e 65 | 65 64 65 64 20 73 74 61 |ack - ne|eded sta|
|00000f50| 63 6b 0d 09 09 53 65 74 | 41 70 70 6c 4c 69 6d 69 |ck...Set|ApplLimi|
|00000f60| 74 28 28 50 74 72 29 20 | 28 28 6c 6f 6e 67 29 20 |t((Ptr) |((long) |
|00000f70| 47 65 74 41 70 70 6c 4c | 69 6d 69 74 28 29 20 2d |GetApplL|imit() -|
|00000f80| 20 73 74 6b 4e 65 65 64 | 65 64 20 2b 20 53 74 61 | stkNeed|ed + Sta|
|00000f90| 63 6b 53 70 61 63 65 28 | 29 29 29 3b 0d 09 20 20 |ckSpace(|)));.. |
|00000fa0| 7d 0d 0d 09 2f 2f 20 43 | 68 65 63 6b 20 66 6f 72 |}...// C|heck for|
|00000fb0| 20 6d 69 6e 69 6d 75 6d | 20 68 65 61 70 20 73 69 | minimum| heap si|
|00000fc0| 7a 65 0d 09 68 65 61 70 | 53 69 7a 65 20 3d 20 28 |ze..heap|Size = (|
|00000fd0| 6c 6f 6e 67 29 20 47 65 | 74 41 70 70 6c 4c 69 6d |long) Ge|tApplLim|
|00000fe0| 69 74 28 29 20 2d 20 28 | 6c 6f 6e 67 29 20 41 70 |it() - (|long) Ap|
|00000ff0| 70 6c 69 63 5a 6f 6e 65 | 28 29 3b 0d 09 69 66 20 |plicZone|();..if |
|00001000| 28 68 65 61 70 53 69 7a | 65 20 3c 20 48 65 61 70 |(heapSiz|e < Heap|
|00001010| 4e 65 65 64 65 64 28 29 | 29 0d 09 20 20 42 69 67 |Needed()|).. Big|
|00001020| 42 61 64 45 72 72 6f 72 | 28 6b 45 72 72 53 74 72 |BadError|(kErrStr|
|00001030| 69 6e 67 73 2c 65 53 6d | 61 6c 6c 53 69 7a 65 29 |ings,eSm|allSize)|
|00001040| 3b 0d 0d 09 2f 2f 20 65 | 78 70 61 6e 64 20 74 68 |;...// e|xpand th|
|00001050| 65 20 68 65 61 70 20 73 | 6f 20 6e 65 77 20 63 6f |e heap s|o new co|
|00001060| 64 65 20 73 65 67 6d 65 | 6e 74 73 20 6c 6f 61 64 |de segme|nts load|
|00001070| 20 61 74 20 74 68 65 20 | 74 6f 70 0d 09 4d 61 78 | at the |top..Max|
|00001080| 41 70 70 6c 5a 6f 6e 65 | 28 29 3b 0d 0d 09 2f 2f |ApplZone|();...//|
|00001090| 20 61 6c 6c 6f 63 61 74 | 65 20 61 6e 20 65 6d 70 | allocat|e an emp|
|000010a0| 74 79 20 64 6f 63 75 6d | 65 6e 74 20 6c 69 73 74 |ty docum|ent list|
|000010b0| 0d 09 66 44 6f 63 4c 69 | 73 74 20 3d 20 6e 65 77 |..fDocLi|st = new|
|000010c0| 20 54 44 6f 63 75 6d 65 | 6e 74 4c 69 73 74 3b 0d | TDocume|ntList;.|
|000010d0| 0d 09 2f 2f 20 63 68 65 | 63 6b 20 74 6f 20 73 65 |..// che|ck to se|
|000010e0| 65 20 69 66 20 57 61 69 | 74 4e 65 78 74 45 76 65 |e if Wai|tNextEve|
|000010f0| 6e 74 20 69 73 20 69 6d | 70 6c 65 6d 65 6e 74 65 |nt is im|plemente|
|00001100| 64 0d 09 66 48 61 76 65 | 57 61 69 74 4e 65 78 74 |d..fHave|WaitNext|
|00001110| 45 76 65 6e 74 20 3d 20 | 54 72 61 70 41 76 61 69 |Event = |TrapAvai|
|00001120| 6c 61 62 6c 65 28 5f 57 | 61 69 74 4e 65 78 74 45 |lable(_W|aitNextE|
|00001130| 76 65 6e 74 2c 20 54 6f | 6f 6c 54 72 61 70 29 3b |vent, To|olTrap);|
|00001140| 0d 0d 09 2f 2f 20 69 6e | 69 74 69 61 6c 69 7a 65 |...// in|itialize|
|00001150| 20 6f 75 72 20 63 6c 61 | 73 73 20 76 61 72 69 61 | our cla|ss varia|
|00001160| 62 6c 65 73 0d 09 66 43 | 75 72 44 6f 63 20 3d 20 |bles..fC|urDoc = |
|00001170| 6e 69 6c 3b 0d 09 66 44 | 6f 6e 65 20 3d 20 66 61 |nil;..fD|one = fa|
|00001180| 6c 73 65 3b 0d 09 66 49 | 6e 42 61 63 6b 67 72 6f |lse;..fI|nBackgro|
|00001190| 75 6e 64 20 3d 20 66 61 | 6c 73 65 3b 0d 09 66 4d |und = fa|lse;..fM|
|000011a0| 6f 75 73 65 52 67 6e 20 | 3d 20 6e 69 6c 3b 0d 09 |ouseRgn |= nil;..|
|000011b0| 66 57 68 69 63 68 57 69 | 6e 64 6f 77 20 3d 20 6e |fWhichWi|ndow = n|
|000011c0| 69 6c 3b 0d 09 66 43 72 | 65 61 74 6f 72 20 3d 20 |il;..fCr|eator = |
|000011d0| 63 72 65 61 74 6f 72 3b | 0d 7d 0d 0d 0d 54 41 70 |creator;|.}...TAp|
|000011e0| 70 6c 69 63 61 74 69 6f | 6e 2a 20 54 41 70 70 6c |plicatio|n* TAppl|
|000011f0| 69 63 61 74 69 6f 6e 3a | 3a 47 65 74 41 70 70 6c |ication:|:GetAppl|
|00001200| 69 63 61 74 69 6f 6e 28 | 29 0d 7b 0d 09 72 65 74 |ication(|).{..ret|
|00001210| 75 72 6e 20 67 41 70 70 | 6c 69 63 61 74 69 6f 6e |urn gApp|lication|
|00001220| 3b 0d 7d 0d 0d 0d 76 6f | 69 64 20 54 41 70 70 6c |;.}...vo|id TAppl|
|00001230| 69 63 61 74 69 6f 6e 3a | 3a 45 76 65 6e 74 4c 6f |ication:|:EventLo|
|00001240| 6f 70 28 29 0d 7b 0d 09 | 69 6e 74 20 67 6f 74 45 |op().{..|int gotE|
|00001250| 76 65 6e 74 3b 0d 09 45 | 76 65 6e 74 52 65 63 6f |vent;..E|ventReco|
|00001260| 72 64 20 74 45 76 74 3b | 0d 0d 09 53 65 74 55 70 |rd tEvt;|...SetUp|
|00001270| 28 29 3b 09 09 09 09 09 | 2f 2f 20 63 61 6c 6c 20 |();.....|// call |
|00001280| 73 65 74 75 70 20 72 6f | 75 74 69 6e 65 0d 09 44 |setup ro|utine..D|
|00001290| 6f 49 64 6c 65 28 29 3b | 09 09 09 09 09 2f 2f 20 |oIdle();|.....// |
|000012a0| 64 6f 20 69 64 6c 65 20 | 6f 6e 63 65 0d 0d 09 77 |do idle |once...w|
|000012b0| 68 69 6c 65 20 28 21 66 | 44 6f 6e 65 29 0d 09 20 |hile (!f|Done).. |
|000012c0| 20 7b 0d 09 09 2f 2f 20 | 61 6c 77 61 79 73 20 73 | {...// |always s|
|000012d0| 65 74 20 75 70 20 66 57 | 68 69 63 68 57 69 6e 64 |et up fW|hichWind|
|000012e0| 6f 77 20 62 65 66 6f 72 | 65 20 64 6f 69 6e 67 20 |ow befor|e doing |
|000012f0| 61 6e 79 74 68 69 6e 67 | 0d 09 09 66 57 68 69 63 |anything|...fWhic|
|00001300| 68 57 69 6e 64 6f 77 20 | 3d 20 46 72 6f 6e 74 57 |hWindow |= FrontW|
|00001310| 69 6e 64 6f 77 28 29 3b | 0d 09 09 69 66 20 28 66 |indow();|...if (f|
|00001320| 57 68 69 63 68 57 69 6e | 64 6f 77 20 21 3d 20 6e |WhichWin|dow != n|
|00001330| 69 6c 29 0d 09 09 20 20 | 7b 0d 09 09 09 2f 2f 20 |il)... |{....// |
|00001340| 73 65 65 20 69 66 20 77 | 69 6e 64 6f 77 20 62 65 |see if w|indow be|
|00001350| 6c 6f 6e 67 73 20 74 6f | 20 61 20 64 6f 63 75 6d |longs to| a docum|
|00001360| 65 6e 74 0d 09 09 09 66 | 43 75 72 44 6f 63 20 3d |ent....f|CurDoc =|
|00001370| 20 66 44 6f 63 4c 69 73 | 74 2d 3e 46 69 6e 64 44 | fDocLis|t->FindD|
|00001380| 6f 63 28 66 57 68 69 63 | 68 57 69 6e 64 6f 77 29 |oc(fWhic|hWindow)|
|00001390| 3b 0d 09 09 09 2f 2f 20 | 6d 61 6b 65 20 73 75 72 |;....// |make sur|
|000013a0| 65 20 77 65 20 61 6c 77 | 61 79 73 20 64 72 61 77 |e we alw|ays draw|
|000013b0| 20 69 6e 74 6f 20 63 6f | 72 72 65 63 74 20 77 69 | into co|rrect wi|
|000013c0| 6e 64 6f 77 0d 09 09 09 | 53 65 74 50 6f 72 74 28 |ndow....|SetPort(|
|000013d0| 66 57 68 69 63 68 57 69 | 6e 64 6f 77 29 3b 0d 09 |fWhichWi|ndow);..|
|000013e0| 09 20 20 7d 0d 09 09 65 | 6c 73 65 20 66 43 75 72 |. }...e|lse fCur|
|000013f0| 44 6f 63 20 3d 20 6e 69 | 6c 3b 0d 0d 09 09 44 6f |Doc = ni|l;....Do|
|00001400| 49 64 6c 65 28 29 3b 09 | 09 09 2f 2f 20 63 61 6c |Idle();.|..// cal|
|00001410| 6c 20 69 64 6c 65 20 74 | 69 6d 65 20 68 61 6e 64 |l idle t|ime hand|
|00001420| 6c 65 72 0d 0d 09 09 69 | 66 20 28 66 48 61 76 65 |ler....i|f (fHave|
|00001430| 57 61 69 74 4e 65 78 74 | 45 76 65 6e 74 29 0d 09 |WaitNext|Event)..|
|00001440| 09 20 20 67 6f 74 45 76 | 65 6e 74 20 3d 20 57 61 |. gotEv|ent = Wa|
|00001450| 69 74 4e 65 78 74 45 76 | 65 6e 74 28 65 76 65 72 |itNextEv|ent(ever|
|00001460| 79 45 76 65 6e 74 2c 20 | 26 74 45 76 74 2c 20 53 |yEvent, |&tEvt, S|
|00001470| 6c 65 65 70 56 61 6c 28 | 29 2c 20 66 4d 6f 75 73 |leepVal(|), fMous|
|00001480| 65 52 67 6e 29 3b 0d 09 | 09 65 6c 73 65 0d 09 09 |eRgn);..|.else...|
|00001490| 20 20 7b 0d 09 09 09 53 | 79 73 74 65 6d 54 61 73 | {....S|ystemTas|
|000014a0| 6b 28 29 3b 0d 09 09 09 | 67 6f 74 45 76 65 6e 74 |k();....|gotEvent|
|000014b0| 20 3d 20 47 65 74 4e 65 | 78 74 45 76 65 6e 74 28 | = GetNe|xtEvent(|
|000014c0| 65 76 65 72 79 45 76 65 | 6e 74 2c 20 26 74 45 76 |everyEve|nt, &tEv|
|000014d0| 74 29 3b 0d 09 09 20 20 | 7d 0d 09 09 66 54 68 65 |t);... |}...fThe|
|000014e0| 45 76 65 6e 74 20 3d 20 | 74 45 76 74 3b 0d 0d 09 |Event = |tEvt;...|
|000014f0| 09 2f 2f 20 69 66 20 77 | 65 20 67 6f 74 20 61 20 |.// if w|e got a |
|00001500| 72 65 61 6c 20 65 76 65 | 6e 74 2c 20 70 72 6f 63 |real eve|nt, proc|
|00001510| 65 73 73 20 69 74 0d 09 | 09 69 66 20 28 67 6f 74 |ess it..|.if (got|
|00001520| 45 76 65 6e 74 29 0d 09 | 09 20 20 50 72 6f 63 65 |Event)..|. Proce|
|00001530| 73 73 45 76 65 6e 74 28 | 29 3b 0d 0d 09 09 41 64 |ssEvent(|);....Ad|
|00001540| 6a 75 73 74 43 75 72 73 | 6f 72 28 29 3b 0d 09 20 |justCurs|or();.. |
|00001550| 20 7d 0d 7d 0d 0d 76 6f | 69 64 20 54 41 70 70 6c | }.}..vo|id TAppl|
|00001560| 69 63 61 74 69 6f 6e 3a | 3a 50 72 6f 63 65 73 73 |ication:|:Process|
|00001570| 45 76 65 6e 74 28 29 0d | 7b 0d 09 2f 2f 20 6d 61 |Event().|{..// ma|
|00001580| 6b 65 20 73 75 72 65 20 | 61 6c 65 72 74 20 69 73 |ke sure |alert is|
|00001590| 20 6c 6f 61 64 65 64 20 | 69 6e 20 6d 65 6d 6f 72 | loaded |in memor|
|000015a0| 79 20 42 45 46 4f 52 45 | 20 77 65 20 64 6f 20 61 |y BEFORE| we do a|
|000015b0| 6e 79 20 65 76 65 6e 74 | 0d 09 2f 2f 20 70 72 6f |ny event|..// pro|
|000015c0| 63 65 73 73 69 6e 67 2e | 20 54 68 69 73 20 69 73 |cessing.| This is|
|000015d0| 20 6e 65 63 65 73 73 61 | 72 79 20 73 69 6e 63 65 | necessa|ry since|
|000015e0| 20 74 68 65 20 61 6c 65 | 72 74 20 66 6f 72 20 74 | the ale|rt for t|
|000015f0| 68 65 20 63 61 73 65 0d | 09 2f 2f 20 77 68 65 6e |he case.|.// when|
|00001600| 20 77 65 20 6e 65 65 64 | 20 74 6f 20 64 69 73 70 | we need| to disp|
|00001610| 6c 61 79 20 61 6e 20 6f | 75 74 20 6f 66 20 6d 65 |lay an o|ut of me|
|00001620| 6d 6f 72 79 20 61 6c 65 | 72 74 2e 0d 09 43 6f 75 |mory ale|rt...Cou|
|00001630| 6c 64 41 6c 65 72 74 28 | 72 55 73 65 72 41 6c 65 |ldAlert(|rUserAle|
|00001640| 72 74 29 3b 0d 09 54 52 | 59 0d 09 20 20 7b 0d 09 |rt);..TR|Y.. {..|
|00001650| 09 41 64 6a 75 73 74 43 | 75 72 73 6f 72 28 29 3b |.AdjustC|ursor();|
|00001660| 0d 09 09 73 77 69 74 63 | 68 20 28 66 54 68 65 45 |...switc|h (fTheE|
|00001670| 76 65 6e 74 2e 77 68 61 | 74 29 0d 09 09 20 20 7b |vent.wha|t)... {|
|00001680| 0d 09 09 09 63 61 73 65 | 20 6d 6f 75 73 65 44 6f |....case| mouseDo|
|00001690| 77 6e 3a 0d 09 09 09 09 | 44 6f 4d 6f 75 73 65 44 |wn:.....|DoMouseD|
|000016a0| 6f 77 6e 28 29 3b 0d 09 | 09 09 09 62 72 65 61 6b |own();..|...break|
|000016b0| 3b 0d 09 09 09 63 61 73 | 65 20 6d 6f 75 73 65 55 |;....cas|e mouseU|
|000016c0| 70 3a 0d 09 09 09 09 44 | 6f 4d 6f 75 73 65 55 70 |p:.....D|oMouseUp|
|000016d0| 28 29 3b 0d 09 09 09 09 | 62 72 65 61 6b 3b 0d 09 |();.....|break;..|
|000016e0| 09 09 63 61 73 65 20 6b | 65 79 44 6f 77 6e 3a 0d |..case k|eyDown:.|
|000016f0| 09 09 09 63 61 73 65 20 | 61 75 74 6f 4b 65 79 3a |...case |autoKey:|
|00001700| 0d 09 09 09 09 44 6f 4b | 65 79 44 6f 77 6e 28 29 |.....DoK|eyDown()|
|00001710| 3b 0d 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 09 |;.....br|eak;....|
|00001720| 63 61 73 65 20 75 70 64 | 61 74 65 45 76 74 3a 0d |case upd|ateEvt:.|
|00001730| 09 09 09 09 44 6f 55 70 | 64 61 74 65 45 76 74 28 |....DoUp|dateEvt(|
|00001740| 29 3b 0d 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |);.....b|reak;...|
|00001750| 09 63 61 73 65 20 64 69 | 73 6b 45 76 74 3a 0d 09 |.case di|skEvt:..|
|00001760| 09 09 09 44 6f 44 69 73 | 6b 45 76 74 28 29 3b 0d |...DoDis|kEvt();.|
|00001770| 09 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 09 63 61 |....brea|k;....ca|
|00001780| 73 65 20 61 63 74 69 76 | 61 74 65 45 76 74 3a 0d |se activ|ateEvt:.|
|00001790| 09 09 09 09 44 6f 41 63 | 74 69 76 61 74 65 45 76 |....DoAc|tivateEv|
|000017a0| 74 28 29 3b 0d 09 09 09 | 09 62 72 65 61 6b 3b 0d |t();....|.break;.|
|000017b0| 09 09 09 63 61 73 65 20 | 6b 4f 73 45 76 65 6e 74 |...case |kOsEvent|
|000017c0| 3a 0d 09 09 09 09 44 6f | 4f 53 45 76 65 6e 74 28 |:.....Do|OSEvent(|
|000017d0| 29 3b 0d 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |);.....b|reak;...|
|000017e0| 09 63 61 73 65 20 6b 48 | 69 67 68 4c 65 76 65 6c |.case kH|ighLevel|
|000017f0| 45 76 65 6e 74 3a 0d 09 | 09 09 09 44 6f 48 69 67 |Event:..|...DoHig|
|00001800| 68 4c 65 76 65 6c 45 76 | 65 6e 74 28 29 3b 0d 09 |hLevelEv|ent();..|
|00001810| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 64 65 66 |...break|;....def|
|00001820| 61 75 6c 74 3a 0d 09 09 | 09 09 62 72 65 61 6b 3b |ault:...|..break;|
|00001830| 0d 09 09 20 20 7d 0d 09 | 20 20 7d 0d 09 52 45 43 |... }..| }..REC|
|00001840| 4f 56 45 52 0d 09 20 20 | 7b 0d 09 09 41 6c 65 72 |OVER.. |{...Aler|
|00001850| 74 55 73 65 72 28 28 73 | 68 6f 72 74 29 20 67 46 |tUser((s|hort) gF|
|00001860| 61 69 6c 4d 65 73 73 61 | 67 65 2c 20 67 46 61 69 |ailMessa|ge, gFai|
|00001870| 6c 45 72 72 6f 72 29 3b | 0d 09 09 2f 2f 20 64 6f |lError);|...// do|
|00001880| 6e 27 74 20 6c 65 74 20 | 65 72 72 6f 72 20 62 75 |n't let |error bu|
|00001890| 62 62 6c 65 20 75 70 20 | 61 6e 79 20 66 61 72 74 |bble up |any fart|
|000018a0| 68 65 72 0d 09 09 67 6f | 74 6f 20 64 6f 6e 65 45 |her...go|to doneE|
|000018b0| 76 65 6e 74 3b 0d 09 20 | 20 7d 0d 09 45 4e 44 54 |vent;.. | }..ENDT|
|000018c0| 52 59 0d 0d 64 6f 6e 65 | 45 76 65 6e 74 3a 0d 09 |RY..done|Event:..|
|000018d0| 72 65 74 75 72 6e 3b 0d | 7d 0d 0d 76 6f 69 64 20 |return;.|}..void |
|000018e0| 54 41 70 70 6c 69 63 61 | 74 69 6f 6e 3a 3a 44 6f |TApplica|tion::Do|
|000018f0| 48 69 67 68 4c 65 76 65 | 6c 45 76 65 6e 74 28 29 |HighLeve|lEvent()|
|00001900| 0d 7b 0d 09 46 61 69 6c | 4f 53 45 72 72 28 41 45 |.{..Fail|OSErr(AE|
|00001910| 50 72 6f 63 65 73 73 41 | 70 70 6c 65 45 76 65 6e |ProcessA|ppleEven|
|00001920| 74 28 26 66 54 68 65 45 | 76 65 6e 74 29 29 3b 0d |t(&fTheE|vent));.|
|00001930| 7d 0d 0d 76 6f 69 64 20 | 54 41 70 70 6c 69 63 61 |}..void |TApplica|
|00001940| 74 69 6f 6e 3a 3a 44 6f | 4b 65 79 44 6f 77 6e 28 |tion::Do|KeyDown(|
|00001950| 29 0d 7b 0d 09 63 68 61 | 72 20 6b 65 79 3b 0d 09 |).{..cha|r key;..|
|00001960| 6c 6f 6e 67 20 6d 52 65 | 73 75 6c 74 3b 0d 0d 09 |long mRe|sult;...|
|00001970| 6b 65 79 20 3d 20 28 63 | 68 61 72 29 20 28 66 54 |key = (c|har) (fT|
|00001980| 68 65 45 76 65 6e 74 2e | 6d 65 73 73 61 67 65 20 |heEvent.|message |
|00001990| 26 20 63 68 61 72 43 6f | 64 65 4d 61 73 6b 29 3b |& charCo|deMask);|
|000019a0| 0d 09 69 66 20 28 28 66 | 54 68 65 45 76 65 6e 74 |..if ((f|TheEvent|
|000019b0| 2e 6d 6f 64 69 66 69 65 | 72 73 20 26 20 63 6d 64 |.modifie|rs & cmd|
|000019c0| 4b 65 79 29 20 26 26 20 | 28 66 54 68 65 45 76 65 |Key) && |(fTheEve|
|000019d0| 6e 74 2e 77 68 61 74 20 | 3d 3d 20 6b 65 79 44 6f |nt.what |== keyDo|
|000019e0| 77 6e 29 29 0d 09 20 20 | 7b 0d 09 09 2f 2f 20 6f |wn)).. |{...// o|
|000019f0| 6e 6c 79 20 64 6f 20 63 | 6f 6d 6d 61 6e 64 20 6b |nly do c|ommand k|
|00001a00| 65 79 73 20 69 66 20 77 | 65 20 61 72 65 20 6e 6f |eys if w|e are no|
|00001a10| 74 20 61 75 74 6f 6b 65 | 79 69 6e 67 0d 09 09 41 |t autoke|ying...A|
|00001a20| 64 6a 75 73 74 4d 65 6e | 75 73 28 29 3b 09 09 09 |djustMen|us();...|
|00001a30| 09 09 2f 2f 20 6d 61 6b | 65 20 73 75 72 65 20 6d |..// mak|e sure m|
|00001a40| 65 6e 75 73 20 61 72 65 | 20 75 70 20 74 6f 20 64 |enus are| up to d|
|00001a50| 61 74 65 0d 09 09 6d 52 | 65 73 75 6c 74 20 3d 20 |ate...mR|esult = |
|00001a60| 4d 65 6e 75 4b 65 79 28 | 6b 65 79 29 3b 0d 09 09 |MenuKey(|key);...|
|00001a70| 69 66 20 28 6d 52 65 73 | 75 6c 74 20 21 3d 20 30 |if (mRes|ult != 0|
|00001a80| 29 09 09 09 09 2f 2f 20 | 69 66 20 69 74 20 77 61 |)....// |if it wa|
|00001a90| 73 6e 27 74 20 61 20 6d | 65 6e 75 20 6b 65 79 2c |sn't a m|enu key,|
|00001aa0| 20 70 61 73 73 20 69 74 | 20 74 68 72 6f 75 67 68 | pass it| through|
|00001ab0| 0d 09 09 20 20 7b 0d 09 | 09 09 44 6f 4d 65 6e 75 |... {..|..DoMenu|
|00001ac0| 43 6f 6d 6d 61 6e 64 28 | 48 69 57 6f 72 64 28 6d |Command(|HiWord(m|
|00001ad0| 52 65 73 75 6c 74 29 2c | 20 4c 6f 57 6f 72 64 28 |Result),| LoWord(|
|00001ae0| 6d 52 65 73 75 6c 74 29 | 29 3b 0d 09 09 09 72 65 |mResult)|);....re|
|00001af0| 74 75 72 6e 3b 0d 09 09 | 20 20 7d 0d 09 20 20 7d |turn;...| }.. }|
|00001b00| 0d 09 69 66 20 28 66 43 | 75 72 44 6f 63 20 21 3d |..if (fC|urDoc !=|
|00001b10| 20 6e 69 6c 29 0d 09 20 | 20 7b 0d 09 09 45 76 65 | nil).. | {...Eve|
|00001b20| 6e 74 52 65 63 6f 72 64 | 20 74 45 76 74 3b 0d 0d |ntRecord| tEvt;..|
|00001b30| 09 09 2f 2f 20 77 65 20 | 63 6f 70 79 20 65 76 65 |..// we |copy eve|
|00001b40| 6e 74 20 72 65 63 6f 72 | 64 20 73 6f 20 74 68 61 |nt recor|d so tha|
|00001b50| 74 20 77 65 20 64 6f 6e | 27 74 20 70 61 73 73 20 |t we don|'t pass |
|00001b60| 72 65 66 65 72 65 6e 63 | 65 20 74 6f 20 6f 62 6a |referenc|e to obj|
|00001b70| 65 63 74 20 66 69 65 6c | 64 0d 09 09 74 45 76 74 |ect fiel|d...tEvt|
|00001b80| 20 3d 20 66 54 68 65 45 | 76 65 6e 74 3b 0d 09 09 | = fTheE|vent;...|
|00001b90| 66 43 75 72 44 6f 63 2d | 3e 44 6f 4b 65 79 44 6f |fCurDoc-|>DoKeyDo|
|00001ba0| 77 6e 28 26 74 45 76 74 | 29 3b 0d 09 20 20 7d 0d |wn(&tEvt|);.. }.|
|00001bb0| 7d 0d 0d 76 6f 69 64 20 | 54 41 70 70 6c 69 63 61 |}..void |TApplica|
|00001bc0| 74 69 6f 6e 3a 3a 44 6f | 41 63 74 69 76 61 74 65 |tion::Do|Activate|
|00001bd0| 45 76 74 28 29 0d 7b 0d | 09 2f 2f 20 65 76 65 6e |Evt().{.|.// even|
|00001be0| 74 20 72 65 63 6f 72 64 | 20 63 6f 6e 74 61 69 6e |t record| contain|
|00001bf0| 73 20 77 69 6e 64 6f 77 | 20 70 74 72 0d 09 66 57 |s window| ptr..fW|
|00001c00| 68 69 63 68 57 69 6e 64 | 6f 77 20 3d 20 28 57 69 |hichWind|ow = (Wi|
|00001c10| 6e 64 6f 77 50 74 72 29 | 20 66 54 68 65 45 76 65 |ndowPtr)| fTheEve|
|00001c20| 6e 74 2e 6d 65 73 73 61 | 67 65 3b 0d 09 2f 2f 20 |nt.messa|ge;..// |
|00001c30| 73 65 65 20 69 66 20 77 | 69 6e 64 6f 77 20 62 65 |see if w|indow be|
|00001c40| 6c 6f 6e 67 73 20 74 6f | 20 61 20 64 6f 63 75 6d |longs to| a docum|
|00001c50| 65 6e 74 0d 09 66 43 75 | 72 44 6f 63 20 3d 20 66 |ent..fCu|rDoc = f|
|00001c60| 44 6f 63 4c 69 73 74 2d | 3e 46 69 6e 64 44 6f 63 |DocList-|>FindDoc|
|00001c70| 28 66 57 68 69 63 68 57 | 69 6e 64 6f 77 29 3b 0d |(fWhichW|indow);.|
|00001c80| 09 53 65 74 50 6f 72 74 | 28 66 57 68 69 63 68 57 |.SetPort|(fWhichW|
|00001c90| 69 6e 64 6f 77 29 3b 0d | 0d 09 69 66 20 28 66 43 |indow);.|..if (fC|
|00001ca0| 75 72 44 6f 63 20 21 3d | 20 6e 69 6c 29 0d 09 20 |urDoc !=| nil).. |
|00001cb0| 20 66 43 75 72 44 6f 63 | 2d 3e 44 6f 41 63 74 69 | fCurDoc|->DoActi|
|00001cc0| 76 61 74 65 28 28 66 54 | 68 65 45 76 65 6e 74 2e |vate((fT|heEvent.|
|00001cd0| 6d 6f 64 69 66 69 65 72 | 73 20 26 20 61 63 74 69 |modifier|s & acti|
|00001ce0| 76 65 46 6c 61 67 29 20 | 21 3d 20 30 29 3b 0d 7d |veFlag) |!= 0);.}|
|00001cf0| 0d 0d 76 6f 69 64 20 54 | 41 70 70 6c 69 63 61 74 |..void T|Applicat|
|00001d00| 69 6f 6e 3a 3a 44 6f 55 | 70 64 61 74 65 45 76 74 |ion::DoU|pdateEvt|
|00001d10| 28 29 0d 7b 0d 09 2f 2f | 20 65 76 65 6e 74 20 72 |().{..//| event r|
|00001d20| 65 63 6f 72 64 20 63 6f | 6e 74 61 69 6e 73 20 77 |ecord co|ntains w|
|00001d30| 69 6e 64 6f 77 20 70 74 | 72 0d 09 66 57 68 69 63 |indow pt|r..fWhic|
|00001d40| 68 57 69 6e 64 6f 77 20 | 3d 20 28 57 69 6e 64 6f |hWindow |= (Windo|
|00001d50| 77 50 74 72 29 20 66 54 | 68 65 45 76 65 6e 74 2e |wPtr) fT|heEvent.|
|00001d60| 6d 65 73 73 61 67 65 3b | 0d 09 2f 2f 20 73 65 65 |message;|..// see|
|00001d70| 20 69 66 20 77 69 6e 64 | 6f 77 20 62 65 6c 6f 6e | if wind|ow belon|
|00001d80| 67 73 20 74 6f 20 61 20 | 64 6f 63 75 6d 65 6e 74 |gs to a |document|
|00001d90| 0d 09 66 43 75 72 44 6f | 63 20 3d 20 66 44 6f 63 |..fCurDo|c = fDoc|
|00001da0| 4c 69 73 74 2d 3e 46 69 | 6e 64 44 6f 63 28 66 57 |List->Fi|ndDoc(fW|
|00001db0| 68 69 63 68 57 69 6e 64 | 6f 77 29 3b 0d 09 53 65 |hichWind|ow);..Se|
|00001dc0| 74 50 6f 72 74 28 66 57 | 68 69 63 68 57 69 6e 64 |tPort(fW|hichWind|
|00001dd0| 6f 77 29 3b 0d 0d 09 69 | 66 20 28 66 43 75 72 44 |ow);...i|f (fCurD|
|00001de0| 6f 63 20 21 3d 20 6e 69 | 6c 29 0d 09 20 20 66 43 |oc != ni|l).. fC|
|00001df0| 75 72 44 6f 63 2d 3e 44 | 6f 55 70 64 61 74 65 28 |urDoc->D|oUpdate(|
|00001e00| 29 3b 0d 7d 0d 0d 2f 2f | 20 4e 4f 54 45 3a 20 77 |);.}..//| NOTE: w|
|00001e10| 65 20 75 73 65 20 61 6e | 20 61 6e 6f 6e 79 6d 6f |e use an| anonymo|
|00001e20| 75 73 20 70 61 72 61 6d | 65 74 65 72 20 68 65 72 |us param|eter her|
|00001e30| 65 20 73 6f 20 74 68 61 | 74 20 74 68 65 20 63 6f |e so tha|t the co|
|00001e40| 6d 70 69 6c 65 72 0d 2f | 2f 20 64 6f 65 73 6e 27 |mpiler./|/ doesn'|
|00001e50| 74 20 77 61 72 6e 20 75 | 73 20 61 62 6f 75 74 20 |t warn u|s about |
|00001e60| 69 74 20 62 65 69 6e 67 | 20 75 6e 75 73 65 64 2e |it being| unused.|
|00001e70| 20 53 69 6e 63 65 20 77 | 65 20 67 69 76 65 20 69 | Since w|e give i|
|00001e80| 74 20 61 20 6e 61 6d 65 | 0d 2f 2f 20 69 6e 20 74 |t a name|.// in t|
|00001e90| 68 65 20 63 6c 61 73 73 | 20 64 65 66 69 6e 69 74 |he class| definit|
|00001ea0| 69 6f 6e 2c 20 77 65 20 | 73 74 69 6c 6c 20 6b 6e |ion, we |still kn|
|00001eb0| 6f 77 20 77 68 61 74 20 | 69 74 73 20 75 73 65 64 |ow what |its used|
|00001ec0| 20 66 6f 72 2e 0d 76 6f | 69 64 20 54 41 70 70 6c | for..vo|id TAppl|
|00001ed0| 69 63 61 74 69 6f 6e 3a | 3a 44 6f 53 75 73 70 65 |ication:|:DoSuspe|
|00001ee0| 6e 64 28 42 6f 6f 6c 65 | 61 6e 29 0d 7b 0d 09 69 |nd(Boole|an).{..i|
|00001ef0| 66 20 28 66 43 75 72 44 | 6f 63 20 21 3d 20 6e 69 |f (fCurD|oc != ni|
|00001f00| 6c 29 0d 09 20 20 66 43 | 75 72 44 6f 63 2d 3e 44 |l).. fC|urDoc->D|
|00001f10| 6f 41 63 74 69 76 61 74 | 65 28 21 66 49 6e 42 61 |oActivat|e(!fInBa|
|00001f20| 63 6b 67 72 6f 75 6e 64 | 29 3b 0d 7d 0d 0d 76 6f |ckground|);.}..vo|
|00001f30| 69 64 20 54 41 70 70 6c | 69 63 61 74 69 6f 6e 3a |id TAppl|ication:|
|00001f40| 3a 44 6f 52 65 73 75 6d | 65 28 42 6f 6f 6c 65 61 |:DoResum|e(Boolea|
|00001f50| 6e 29 0d 7b 0d 09 69 66 | 20 28 66 43 75 72 44 6f |n).{..if| (fCurDo|
|00001f60| 63 20 21 3d 20 6e 69 6c | 29 0d 09 20 20 66 43 75 |c != nil|).. fCu|
|00001f70| 72 44 6f 63 2d 3e 44 6f | 41 63 74 69 76 61 74 65 |rDoc->Do|Activate|
|00001f80| 28 21 66 49 6e 42 61 63 | 6b 67 72 6f 75 6e 64 29 |(!fInBac|kground)|
|00001f90| 3b 0d 7d 0d 0d 76 6f 69 | 64 20 54 41 70 70 6c 69 |;.}..voi|d TAppli|
|00001fa0| 63 61 74 69 6f 6e 3a 3a | 44 6f 4f 53 45 76 65 6e |cation::|DoOSEven|
|00001fb0| 74 28 29 0d 7b 0d 09 42 | 6f 6f 6c 65 61 6e 20 64 |t().{..B|oolean d|
|00001fc0| 6f 43 6f 6e 76 65 72 74 | 3b 0d 09 75 6e 73 69 67 |oConvert|;..unsig|
|00001fd0| 6e 65 64 20 63 68 61 72 | 20 65 76 54 79 70 65 3b |ned char| evType;|
|00001fe0| 0d 0d 09 2f 2f 20 69 73 | 20 69 74 20 61 20 6d 75 |...// is| it a mu|
|00001ff0| 6c 74 69 66 69 6e 64 65 | 72 20 65 76 65 6e 74 3f |ltifinde|r event?|
|00002000| 0d 09 65 76 54 79 70 65 | 20 3d 20 28 75 6e 73 69 |..evType| = (unsi|
|00002010| 67 6e 65 64 20 63 68 61 | 72 29 20 28 66 54 68 65 |gned cha|r) (fThe|
|00002020| 45 76 65 6e 74 2e 6d 65 | 73 73 61 67 65 20 3e 3e |Event.me|ssage >>|
|00002030| 20 32 34 29 20 26 20 30 | 78 30 30 66 66 3b 0d 09 | 24) & 0|x00ff;..|
|00002040| 73 77 69 74 63 68 20 28 | 65 76 54 79 70 65 29 20 |switch (|evType) |
|00002050| 7b 20 09 2f 2f 20 68 69 | 67 68 20 62 79 74 65 20 |{ .// hi|gh byte |
|00002060| 6f 66 20 6d 65 73 73 61 | 67 65 20 69 73 20 74 79 |of messa|ge is ty|
|00002070| 70 65 20 6f 66 20 65 76 | 65 6e 74 0d 09 09 63 61 |pe of ev|ent...ca|
|00002080| 73 65 20 6b 4d 6f 75 73 | 65 4d 6f 76 65 64 4d 65 |se kMous|eMovedMe|
|00002090| 73 73 61 67 65 3a 0d 09 | 09 09 44 6f 49 64 6c 65 |ssage:..|..DoIdle|
|000020a0| 28 29 3b 09 09 09 09 09 | 2f 2f 20 6d 6f 75 73 65 |();.....|// mouse|
|000020b0| 2d 6d 6f 76 65 64 20 69 | 73 20 61 6c 73 6f 20 61 |-moved i|s also a|
|000020c0| 6e 20 69 64 6c 65 20 65 | 76 65 6e 74 0d 09 09 09 |n idle e|vent....|
|000020d0| 62 72 65 61 6b 3b 0d 09 | 09 63 61 73 65 20 6b 53 |break;..|.case kS|
|000020e0| 75 73 70 65 6e 64 52 65 | 73 75 6d 65 4d 65 73 73 |uspendRe|sumeMess|
|000020f0| 61 67 65 3a 0d 09 09 09 | 64 6f 43 6f 6e 76 65 72 |age:....|doConver|
|00002100| 74 20 3d 20 28 66 54 68 | 65 45 76 65 6e 74 2e 6d |t = (fTh|eEvent.m|
|00002110| 65 73 73 61 67 65 20 26 | 20 6b 43 6c 69 70 43 6f |essage &| kClipCo|
|00002120| 6e 76 65 72 74 4d 61 73 | 6b 29 20 21 3d 20 30 3b |nvertMas|k) != 0;|
|00002130| 0d 09 09 09 66 49 6e 42 | 61 63 6b 67 72 6f 75 6e |....fInB|ackgroun|
|00002140| 64 20 3d 20 28 66 54 68 | 65 45 76 65 6e 74 2e 6d |d = (fTh|eEvent.m|
|00002150| 65 73 73 61 67 65 20 26 | 20 6b 52 65 73 75 6d 65 |essage &| kResume|
|00002160| 4d 61 73 6b 29 20 3d 3d | 20 30 3b 0d 09 09 09 69 |Mask) ==| 0;....i|
|00002170| 66 20 28 66 49 6e 42 61 | 63 6b 67 72 6f 75 6e 64 |f (fInBa|ckground|
|00002180| 29 0d 09 09 09 20 20 44 | 6f 53 75 73 70 65 6e 64 |).... D|oSuspend|
|00002190| 28 64 6f 43 6f 6e 76 65 | 72 74 29 3b 0d 09 09 09 |(doConve|rt);....|
|000021a0| 65 6c 73 65 20 44 6f 52 | 65 73 75 6d 65 28 64 6f |else DoR|esume(do|
|000021b0| 43 6f 6e 76 65 72 74 29 | 3b 0d 09 09 09 62 72 65 |Convert)|;....bre|
|000021c0| 61 6b 3b 0d 09 7d 0d 7d | 0d 0d 76 6f 69 64 20 54 |ak;..}.}|..void T|
|000021d0| 41 70 70 6c 69 63 61 74 | 69 6f 6e 3a 3a 44 6f 4d |Applicat|ion::DoM|
|000021e0| 6f 75 73 65 44 6f 77 6e | 28 29 0d 7b 0d 09 6c 6f |ouseDown|().{..lo|
|000021f0| 6e 67 20 6d 52 65 73 75 | 6c 74 3b 0d 09 73 68 6f |ng mResu|lt;..sho|
|00002200| 72 74 20 70 61 72 74 43 | 6f 64 65 3b 0d 09 57 69 |rt partC|ode;..Wi|
|00002210| 6e 64 6f 77 50 74 72 20 | 74 57 69 6e 64 3b 0d 09 |ndowPtr |tWind;..|
|00002220| 45 76 65 6e 74 52 65 63 | 6f 72 64 20 74 45 76 74 |EventRec|ord tEvt|
|00002230| 3b 0d 0d 09 2f 2f 20 67 | 6f 74 74 61 20 77 61 74 |;...// g|otta wat|
|00002240| 63 68 20 74 68 6f 73 65 | 20 6f 62 6a 65 63 74 20 |ch those| object |
|00002250| 66 69 65 6c 64 20 64 65 | 72 65 66 65 72 65 6e 63 |field de|referenc|
|00002260| 65 73 0d 09 70 61 72 74 | 43 6f 64 65 20 3d 20 46 |es..part|Code = F|
|00002270| 69 6e 64 57 69 6e 64 6f | 77 28 66 54 68 65 45 76 |indWindo|w(fTheEv|
|00002280| 65 6e 74 2e 77 68 65 72 | 65 2c 20 26 74 57 69 6e |ent.wher|e, &tWin|
|00002290| 64 29 3b 0d 09 66 57 68 | 69 63 68 57 69 6e 64 6f |d);..fWh|ichWindo|
|000022a0| 77 20 3d 20 74 57 69 6e | 64 3b 0d 09 74 45 76 74 |w = tWin|d;..tEvt|
|000022b0| 20 3d 20 66 54 68 65 45 | 76 65 6e 74 3b 0d 09 73 | = fTheE|vent;..s|
|000022c0| 77 69 74 63 68 20 28 70 | 61 72 74 43 6f 64 65 29 |witch (p|artCode)|
|000022d0| 0d 09 20 20 7b 0d 09 09 | 63 61 73 65 20 69 6e 53 |.. {...|case inS|
|000022e0| 79 73 57 69 6e 64 6f 77 | 3a 0d 09 09 09 44 6f 4d |ysWindow|:....DoM|
|000022f0| 6f 75 73 65 49 6e 53 79 | 73 57 69 6e 64 6f 77 28 |ouseInSy|sWindow(|
|00002300| 29 3b 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 63 |);....br|eak;...c|
|00002310| 61 73 65 20 69 6e 4d 65 | 6e 75 42 61 72 3a 0d 09 |ase inMe|nuBar:..|
|00002320| 09 09 41 64 6a 75 73 74 | 4d 65 6e 75 73 28 29 3b |..Adjust|Menus();|
|00002330| 0d 09 09 09 6d 52 65 73 | 75 6c 74 20 3d 20 4d 65 |....mRes|ult = Me|
|00002340| 6e 75 53 65 6c 65 63 74 | 28 74 45 76 74 2e 77 68 |nuSelect|(tEvt.wh|
|00002350| 65 72 65 29 3b 0d 09 09 | 09 69 66 20 28 6d 52 65 |ere);...|.if (mRe|
|00002360| 73 75 6c 74 20 21 3d 20 | 30 29 0d 09 09 09 20 20 |sult != |0).... |
|00002370| 44 6f 4d 65 6e 75 43 6f | 6d 6d 61 6e 64 28 48 69 |DoMenuCo|mmand(Hi|
|00002380| 57 6f 72 64 28 6d 52 65 | 73 75 6c 74 29 2c 4c 6f |Word(mRe|sult),Lo|
|00002390| 57 6f 72 64 28 6d 52 65 | 73 75 6c 74 29 29 3b 0d |Word(mRe|sult));.|
|000023a0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 63 61 73 65 |...break|;...case|
|000023b0| 20 69 6e 47 6f 41 77 61 | 79 3a 0d 09 09 09 44 6f | inGoAwa|y:....Do|
|000023c0| 47 6f 41 77 61 79 28 29 | 3b 0d 09 09 09 62 72 65 |GoAway()|;....bre|
|000023d0| 61 6b 3b 0d 09 09 63 61 | 73 65 20 69 6e 44 72 61 |ak;...ca|se inDra|
|000023e0| 67 3a 0d 09 09 09 44 6f | 44 72 61 67 28 29 3b 0d |g:....Do|Drag();.|
|000023f0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 63 61 73 65 |...break|;...case|
|00002400| 20 69 6e 47 72 6f 77 3a | 0d 09 09 09 69 66 20 28 | inGrow:|....if (|
|00002410| 66 43 75 72 44 6f 63 20 | 21 3d 20 6e 69 6c 29 0d |fCurDoc |!= nil).|
|00002420| 09 09 09 20 20 66 43 75 | 72 44 6f 63 2d 3e 44 6f |... fCu|rDoc->Do|
|00002430| 47 72 6f 77 28 26 74 45 | 76 74 29 3b 0d 09 09 09 |Grow(&tE|vt);....|
|00002440| 62 72 65 61 6b 3b 0d 09 | 09 63 61 73 65 20 69 6e |break;..|.case in|
|00002450| 5a 6f 6f 6d 49 6e 3a 0d | 09 09 63 61 73 65 20 69 |ZoomIn:.|..case i|
|00002460| 6e 5a 6f 6f 6d 4f 75 74 | 3a 0d 09 09 09 69 66 20 |nZoomOut|:....if |
|00002470| 28 28 54 72 61 63 6b 42 | 6f 78 28 66 57 68 69 63 |((TrackB|ox(fWhic|
|00002480| 68 57 69 6e 64 6f 77 2c | 20 74 45 76 74 2e 77 68 |hWindow,| tEvt.wh|
|00002490| 65 72 65 2c 20 70 61 72 | 74 43 6f 64 65 29 29 20 |ere, par|tCode)) |
|000024a0| 26 26 0d 09 09 09 09 28 | 66 43 75 72 44 6f 63 20 |&&.....(|fCurDoc |
|000024b0| 21 3d 20 6e 69 6c 29 29 | 0d 09 09 09 20 20 66 43 |!= nil))|.... fC|
|000024c0| 75 72 44 6f 63 2d 3e 44 | 6f 5a 6f 6f 6d 28 70 61 |urDoc->D|oZoom(pa|
|000024d0| 72 74 43 6f 64 65 29 3b | 0d 09 09 09 62 72 65 61 |rtCode);|....brea|
|000024e0| 6b 3b 0d 09 09 63 61 73 | 65 20 69 6e 43 6f 6e 74 |k;...cas|e inCont|
|000024f0| 65 6e 74 3a 0d 09 09 09 | 2f 2f 20 49 66 20 77 69 |ent:....|// If wi|
|00002500| 6e 64 6f 77 20 69 73 20 | 6e 6f 74 20 69 6e 20 66 |ndow is |not in f|
|00002510| 72 6f 6e 74 2c 20 6d 61 | 6b 65 20 69 74 20 73 6f |ront, ma|ke it so|
|00002520| 0d 09 09 09 69 66 20 28 | 20 66 57 68 69 63 68 57 |....if (| fWhichW|
|00002530| 69 6e 64 6f 77 20 21 3d | 20 46 72 6f 6e 74 57 69 |indow !=| FrontWi|
|00002540| 6e 64 6f 77 28 29 20 29 | 0d 09 09 09 20 20 53 65 |ndow() )|.... Se|
|00002550| 6c 65 63 74 57 69 6e 64 | 6f 77 28 66 57 68 69 63 |lectWind|ow(fWhic|
|00002560| 68 57 69 6e 64 6f 77 29 | 3b 0d 09 09 09 65 6c 73 |hWindow)|;....els|
|00002570| 65 20 69 66 20 28 66 43 | 75 72 44 6f 63 20 21 3d |e if (fC|urDoc !=|
|00002580| 20 6e 69 6c 29 0d 09 09 | 09 20 20 66 43 75 72 44 | nil)...|. fCurD|
|00002590| 6f 63 2d 3e 44 6f 43 6f | 6e 74 65 6e 74 28 26 74 |oc->DoCo|ntent(&t|
|000025a0| 45 76 74 29 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d |Evt);...|.break;.|
|000025b0| 09 20 20 7d 0d 7d 0d 0d | 76 6f 69 64 20 54 41 70 |. }.}..|void TAp|
|000025c0| 70 6c 69 63 61 74 69 6f | 6e 3a 3a 44 6f 44 72 61 |plicatio|n::DoDra|
|000025d0| 67 28 29 0d 7b 0d 09 44 | 72 61 67 57 69 6e 64 6f |g().{..D|ragWindo|
|000025e0| 77 28 66 57 68 69 63 68 | 57 69 6e 64 6f 77 2c 20 |w(fWhich|Window, |
|000025f0| 66 54 68 65 45 76 65 6e | 74 2e 77 68 65 72 65 2c |fTheEven|t.where,|
|00002600| 20 26 71 64 2e 73 63 72 | 65 65 6e 42 69 74 73 2e | &qd.scr|eenBits.|
|00002610| 62 6f 75 6e 64 73 29 3b | 0d 7d 0d 0d 76 6f 69 64 |bounds);|.}..void|
|00002620| 20 54 41 70 70 6c 69 63 | 61 74 69 6f 6e 3a 3a 44 | TApplic|ation::D|
|00002630| 6f 47 6f 41 77 61 79 28 | 29 0d 7b 0d 09 69 66 20 |oGoAway(|).{..if |
|00002640| 28 54 72 61 63 6b 47 6f | 41 77 61 79 28 66 57 68 |(TrackGo|Away(fWh|
|00002650| 69 63 68 57 69 6e 64 6f | 77 2c 20 66 54 68 65 45 |ichWindo|w, fTheE|
|00002660| 76 65 6e 74 2e 77 68 65 | 72 65 29 29 0d 09 20 20 |vent.whe|re)).. |
|00002670| 7b 0d 09 09 69 66 20 28 | 66 43 75 72 44 6f 63 20 |{...if (|fCurDoc |
|00002680| 21 3d 20 6e 69 6c 29 0d | 09 09 20 20 7b 0d 09 09 |!= nil).|.. {...|
|00002690| 09 69 66 20 28 66 43 75 | 72 44 6f 63 2d 3e 44 6f |.if (fCu|rDoc->Do|
|000026a0| 43 6c 6f 73 65 28 74 72 | 75 65 2c 20 79 65 73 52 |Close(tr|ue, yesR|
|000026b0| 65 73 75 6c 74 2c 20 66 | 61 6c 73 65 29 20 21 3d |esult, f|alse) !=|
|000026c0| 20 63 61 6e 63 65 6c 52 | 65 73 75 6c 74 29 0d 09 | cancelR|esult)..|
|000026d0| 09 09 20 20 7b 0d 09 09 | 09 09 66 44 6f 63 4c 69 |.. {...|..fDocLi|
|000026e0| 73 74 2d 3e 52 65 6d 6f | 76 65 44 6f 63 28 66 43 |st->Remo|veDoc(fC|
|000026f0| 75 72 44 6f 63 29 3b 0d | 09 09 09 09 64 65 6c 65 |urDoc);.|....dele|
|00002700| 74 65 20 66 43 75 72 44 | 6f 63 3b 0d 09 09 09 20 |te fCurD|oc;.... |
|00002710| 20 7d 0d 09 09 20 20 7d | 0d 09 09 65 6c 73 65 20 | }... }|...else |
|00002720| 43 6c 6f 73 65 44 65 73 | 6b 41 63 63 28 28 28 57 |CloseDes|kAcc(((W|
|00002730| 69 6e 64 6f 77 50 65 65 | 6b 29 20 66 57 68 69 63 |indowPee|k) fWhic|
|00002740| 68 57 69 6e 64 6f 77 29 | 2d 3e 77 69 6e 64 6f 77 |hWindow)|->window|
|00002750| 4b 69 6e 64 29 3b 0d 09 | 09 2f 2f 20 6d 61 6b 65 |Kind);..|.// make|
|00002760| 20 73 75 72 65 20 6f 75 | 72 20 63 75 72 72 65 6e | sure ou|r curren|
|00002770| 74 20 64 6f 63 75 6d 65 | 6e 74 2f 77 69 6e 64 6f |t docume|nt/windo|
|00002780| 77 20 72 65 66 65 72 65 | 6e 63 65 73 20 61 72 65 |w refere|nces are|
|00002790| 20 76 61 6c 69 64 0d 09 | 09 66 57 68 69 63 68 57 | valid..|.fWhichW|
|000027a0| 69 6e 64 6f 77 20 3d 20 | 46 72 6f 6e 74 57 69 6e |indow = |FrontWin|
|000027b0| 64 6f 77 28 29 3b 0d 09 | 09 69 66 20 28 66 57 68 |dow();..|.if (fWh|
|000027c0| 69 63 68 57 69 6e 64 6f | 77 20 21 3d 20 6e 69 6c |ichWindo|w != nil|
|000027d0| 29 0d 09 09 20 20 7b 0d | 09 09 09 66 43 75 72 44 |)... {.|...fCurD|
|000027e0| 6f 63 20 3d 20 66 44 6f | 63 4c 69 73 74 2d 3e 46 |oc = fDo|cList->F|
|000027f0| 69 6e 64 44 6f 63 28 66 | 57 68 69 63 68 57 69 6e |indDoc(f|WhichWin|
|00002800| 64 6f 77 29 3b 0d 09 09 | 09 53 65 74 50 6f 72 74 |dow);...|.SetPort|
|00002810| 28 66 57 68 69 63 68 57 | 69 6e 64 6f 77 29 3b 0d |(fWhichW|indow);.|
|00002820| 09 09 20 20 7d 0d 09 09 | 65 6c 73 65 20 66 43 75 |.. }...|else fCu|
|00002830| 72 44 6f 63 20 3d 20 6e | 69 6c 3b 0d 09 20 20 7d |rDoc = n|il;.. }|
|00002840| 0d 7d 0d 0d 76 6f 69 64 | 20 54 41 70 70 6c 69 63 |.}..void| TApplic|
|00002850| 61 74 69 6f 6e 3a 3a 50 | 72 6f 63 65 73 73 41 72 |ation::P|rocessAr|
|00002860| 67 73 28 29 0d 7b 0d 09 | 69 66 20 28 21 66 4f 6e |gs().{..|if (!fOn|
|00002870| 53 79 73 74 65 6d 37 29 | 0d 09 7b 0d 09 09 73 68 |System7)|..{...sh|
|00002880| 6f 72 74 20 6d 65 73 73 | 61 67 65 2c 20 6e 75 6d |ort mess|age, num|
|00002890| 46 69 6c 65 73 2c 20 63 | 75 72 46 69 6c 65 3b 0d |Files, c|urFile;.|
|000028a0| 09 09 41 70 70 46 69 6c | 65 20 66 69 6c 65 49 6e |..AppFil|e fileIn|
|000028b0| 66 6f 3b 0d 0d 09 09 2f | 2a 20 63 6f 75 6e 74 20 |fo;..../|* count |
|000028c0| 74 68 65 20 66 69 6c 65 | 73 20 2a 2f 0d 09 09 43 |the file|s */...C|
|000028d0| 6f 75 6e 74 41 70 70 46 | 69 6c 65 73 28 26 6d 65 |ountAppF|iles(&me|
|000028e0| 73 73 61 67 65 2c 26 6e | 75 6d 46 69 6c 65 73 29 |ssage,&n|umFiles)|
|000028f0| 3b 0d 09 09 69 66 20 28 | 6e 75 6d 46 69 6c 65 73 |;...if (|numFiles|
|00002900| 20 3d 3d 20 30 29 0d 09 | 09 20 20 7b 0d 09 09 09 | == 0)..|. {....|
|00002910| 2f 2f 20 63 72 65 61 74 | 65 20 61 20 73 69 6e 67 |// creat|e a sing|
|00002920| 6c 65 20 65 6d 70 74 79 | 20 64 6f 63 75 6d 65 6e |le empty| documen|
|00002930| 74 0d 09 09 09 44 6f 4e | 65 77 28 29 3b 0d 09 09 |t....DoN|ew();...|
|00002940| 09 72 65 74 75 72 6e 3b | 0d 09 09 20 20 7d 0d 09 |.return;|... }..|
|00002950| 09 66 6f 72 20 28 63 75 | 72 46 69 6c 65 20 3d 20 |.for (cu|rFile = |
|00002960| 31 3b 20 63 75 72 46 69 | 6c 65 20 3c 3d 20 6e 75 |1; curFi|le <= nu|
|00002970| 6d 46 69 6c 65 73 3b 20 | 63 75 72 46 69 6c 65 2b |mFiles; |curFile+|
|00002980| 2b 29 0d 09 09 20 20 7b | 0d 09 09 09 2f 2a 20 67 |+)... {|..../* g|
|00002990| 65 74 20 66 69 6c 65 20 | 69 6e 66 6f 20 2a 2f 0d |et file |info */.|
|000029a0| 09 09 09 47 65 74 41 70 | 70 46 69 6c 65 73 28 63 |...GetAp|pFiles(c|
|000029b0| 75 72 46 69 6c 65 2c 26 | 66 69 6c 65 49 6e 66 6f |urFile,&|fileInfo|
|000029c0| 29 3b 0d 09 09 09 2f 2a | 20 6f 70 65 6e 2f 70 72 |);..../*| open/pr|
|000029d0| 69 6e 74 20 74 68 65 20 | 66 69 6c 65 20 2a 2f 0d |int the |file */.|
|000029e0| 09 09 09 69 66 20 28 6d | 65 73 73 61 67 65 20 21 |...if (m|essage !|
|000029f0| 3d 20 61 70 70 50 72 69 | 6e 74 29 0d 09 09 09 20 |= appPri|nt).... |
|00002a00| 20 7b 0d 09 09 09 09 54 | 52 59 0d 09 09 09 09 20 | {.....T|RY..... |
|00002a10| 20 7b 0d 09 09 09 09 09 | 4f 70 65 6e 41 44 6f 63 | {......|OpenADoc|
|00002a20| 28 66 69 6c 65 49 6e 66 | 6f 2e 76 52 65 66 4e 75 |(fileInf|o.vRefNu|
|00002a30| 6d 2c 30 2c 66 69 6c 65 | 49 6e 66 6f 2e 66 4e 61 |m,0,file|Info.fNa|
|00002a40| 6d 65 2c 66 69 6c 65 49 | 6e 66 6f 2e 66 54 79 70 |me,fileI|nfo.fTyp|
|00002a50| 65 29 3b 0d 09 09 09 09 | 20 20 7d 0d 09 09 09 09 |e);.....| }.....|
|00002a60| 52 45 43 4f 56 45 52 0d | 09 09 09 09 20 20 7b 0d |RECOVER.|.... {.|
|00002a70| 09 09 09 09 09 67 6f 74 | 6f 20 70 72 6f 63 65 73 |.....got|o proces|
|00002a80| 73 4e 65 78 74 46 69 6c | 65 3b 0d 09 09 09 09 20 |sNextFil|e;..... |
|00002a90| 20 7d 0d 09 09 09 09 45 | 4e 44 54 52 59 0d 09 09 | }.....E|NDTRY...|
|00002aa0| 09 20 20 7d 0d 09 70 72 | 6f 63 65 73 73 4e 65 78 |. }..pr|ocessNex|
|00002ab0| 74 46 69 6c 65 3a 0d 09 | 09 09 2f 2a 20 63 6c 65 |tFile:..|../* cle|
|00002ac0| 61 72 20 66 69 6e 64 65 | 72 20 61 72 67 20 66 6f |ar finde|r arg fo|
|00002ad0| 72 20 74 68 69 73 20 66 | 69 6c 65 20 2a 2f 0d 09 |r this f|ile */..|
|00002ae0| 09 09 43 6c 72 41 70 70 | 46 69 6c 65 73 28 63 75 |..ClrApp|Files(cu|
|00002af0| 72 46 69 6c 65 29 3b 0d | 09 09 20 20 7d 0d 09 7d |rFile);.|.. }..}|
|00002b00| 0d 7d 0d 0d 76 6f 69 64 | 20 54 41 70 70 6c 69 63 |.}..void| TApplic|
|00002b10| 61 74 69 6f 6e 3a 3a 44 | 6f 51 75 69 74 28 42 6f |ation::D|oQuit(Bo|
|00002b20| 6f 6c 65 61 6e 20 61 73 | 6b 55 73 65 72 2c 20 59 |olean as|kUser, Y|
|00002b30| 4e 43 52 65 73 75 6c 74 | 20 64 65 66 61 75 6c 74 |NCResult| default|
|00002b40| 52 65 73 75 6c 74 29 0d | 7b 0d 09 77 68 69 6c 65 |Result).|{..while|
|00002b50| 20 28 74 72 75 65 29 0d | 09 20 20 7b 0d 09 09 66 | (true).|. {...f|
|00002b60| 57 68 69 63 68 57 69 6e | 64 6f 77 20 3d 20 46 72 |WhichWin|dow = Fr|
|00002b70| 6f 6e 74 57 69 6e 64 6f | 77 28 29 3b 0d 09 09 69 |ontWindo|w();...i|
|00002b80| 66 20 28 66 57 68 69 63 | 68 57 69 6e 64 6f 77 20 |f (fWhic|hWindow |
|00002b90| 3d 3d 20 6e 69 6c 29 0d | 09 09 20 20 62 72 65 61 |== nil).|.. brea|
|00002ba0| 6b 3b 0d 09 09 66 43 75 | 72 44 6f 63 20 3d 20 66 |k;...fCu|rDoc = f|
|00002bb0| 44 6f 63 4c 69 73 74 2d | 3e 46 69 6e 64 44 6f 63 |DocList-|>FindDoc|
|00002bc0| 28 66 57 68 69 63 68 57 | 69 6e 64 6f 77 29 3b 0d |(fWhichW|indow);.|
|00002bd0| 09 09 69 66 20 28 66 43 | 75 72 44 6f 63 20 21 3d |..if (fC|urDoc !=|
|00002be0| 20 6e 69 6c 29 0d 09 09 | 20 20 7b 0d 09 09 09 2f | nil)...| {..../|
|00002bf0| 2f 20 69 66 20 74 68 65 | 20 75 73 65 72 20 63 61 |/ if the| user ca|
|00002c00| 6e 63 65 6c 73 20 74 68 | 65 20 71 75 69 74 0d 09 |ncels th|e quit..|
|00002c10| 09 09 69 66 20 28 66 43 | 75 72 44 6f 63 2d 3e 44 |..if (fC|urDoc->D|
|00002c20| 6f 43 6c 6f 73 65 28 61 | 73 6b 55 73 65 72 2c 20 |oClose(a|skUser, |
|00002c30| 64 65 66 61 75 6c 74 52 | 65 73 75 6c 74 2c 20 74 |defaultR|esult, t|
|00002c40| 72 75 65 29 20 3d 3d 20 | 63 61 6e 63 65 6c 52 65 |rue) == |cancelRe|
|00002c50| 73 75 6c 74 29 0d 09 09 | 09 20 20 72 65 74 75 72 |sult)...|. retur|
|00002c60| 6e 3b 0d 09 09 09 65 6c | 73 65 0d 09 09 09 20 20 |n;....el|se.... |
|00002c70| 7b 0d 09 09 09 09 66 44 | 6f 63 4c 69 73 74 2d 3e |{.....fD|ocList->|
|00002c80| 52 65 6d 6f 76 65 44 6f | 63 28 66 43 75 72 44 6f |RemoveDo|c(fCurDo|
|00002c90| 63 29 3b 0d 09 09 09 09 | 64 65 6c 65 74 65 20 66 |c);.....|delete f|
|00002ca0| 43 75 72 44 6f 63 3b 0d | 09 09 09 20 20 7d 0d 09 |CurDoc;.|... }..|
|00002cb0| 09 20 20 7d 0d 09 09 65 | 6c 73 65 20 43 6c 6f 73 |. }...e|lse Clos|
|00002cc0| 65 44 65 73 6b 41 63 63 | 28 28 28 57 69 6e 64 6f |eDeskAcc|(((Windo|
|00002cd0| 77 50 65 65 6b 29 20 66 | 57 68 69 63 68 57 69 6e |wPeek) f|WhichWin|
|00002ce0| 64 6f 77 29 2d 3e 77 69 | 6e 64 6f 77 4b 69 6e 64 |dow)->wi|ndowKind|
|00002cf0| 29 3b 0d 09 09 2f 2f 20 | 6d 61 6b 65 20 73 75 72 |);...// |make sur|
|00002d00| 65 20 77 65 20 61 72 65 | 6e 27 74 20 69 6e 20 61 |e we are|n't in a|
|00002d10| 6e 20 69 6e 66 69 6e 69 | 74 65 20 6c 6f 6f 70 2e |n infini|te loop.|
|00002d20| 20 54 68 69 73 20 63 6f | 75 6c 64 20 6f 63 63 75 | This co|uld occu|
|00002d30| 72 0d 09 09 2f 2f 20 69 | 66 20 74 68 65 20 43 6c |r...// i|f the Cl|
|00002d40| 6f 73 65 44 65 73 6b 41 | 63 63 20 77 61 73 20 66 |oseDeskA|cc was f|
|00002d50| 61 69 6c 69 6e 67 20 66 | 6f 72 20 73 6f 6d 65 20 |ailing f|or some |
|00002d60| 72 65 61 73 6f 6e 2e 0d | 09 09 69 66 20 28 46 72 |reason..|..if (Fr|
|00002d70| 6f 6e 74 57 69 6e 64 6f | 77 28 29 20 3d 3d 20 66 |ontWindo|w() == f|
|00002d80| 57 68 69 63 68 57 69 6e | 64 6f 77 29 0d 09 09 20 |WhichWin|dow)... |
|00002d90| 20 7b 0d 09 09 09 2f 2f | 20 73 65 6e 64 20 74 68 | {....//| send th|
|00002da0| 65 20 77 69 6e 64 6f 77 | 20 74 6f 20 74 68 65 20 |e window| to the |
|00002db0| 62 61 63 6b 20 6f 66 20 | 74 68 65 20 6c 69 73 74 |back of |the list|
|00002dc0| 2e 0d 09 09 09 2f 2f 20 | 69 66 20 74 68 65 20 46 |.....// |if the F|
|00002dd0| 72 6f 6e 74 57 69 6e 64 | 6f 77 20 69 73 20 73 74 |rontWind|ow is st|
|00002de0| 69 6c 6c 20 74 68 65 20 | 73 61 6d 65 2c 20 77 65 |ill the |same, we|
|00002df0| 20 77 69 6c 6c 20 65 78 | 69 74 0d 09 09 09 2f 2f | will ex|it....//|
|00002e00| 20 74 68 65 20 6c 6f 6f | 70 2e 20 4f 74 68 65 72 | the loo|p. Other|
|00002e10| 77 69 73 65 2c 20 77 65 | 20 6c 65 74 20 74 68 65 |wise, we| let the|
|00002e20| 20 6c 6f 6f 70 20 6b 65 | 65 70 20 72 75 6e 6e 69 | loop ke|ep runni|
|00002e30| 6e 67 20 73 6f 0d 09 09 | 09 2f 2f 20 74 68 61 74 |ng so...|.// that|
|00002e40| 20 77 65 20 68 61 76 65 | 20 61 20 63 68 61 6e 63 | we have| a chanc|
|00002e50| 65 20 74 6f 20 63 6c 6f | 73 65 20 6f 75 72 20 6f |e to clo|se our o|
|00002e60| 74 68 65 72 20 77 69 6e | 64 6f 77 73 0d 09 09 09 |ther win|dows....|
|00002e70| 2f 2f 20 63 6c 65 61 6e | 6c 79 0d 09 09 09 53 65 |// clean|ly....Se|
|00002e80| 6e 64 42 65 68 69 6e 64 | 28 66 57 68 69 63 68 57 |ndBehind|(fWhichW|
|00002e90| 69 6e 64 6f 77 2c 20 6e | 69 6c 29 3b 0d 09 09 09 |indow, n|il);....|
|00002ea0| 69 66 20 28 46 72 6f 6e | 74 57 69 6e 64 6f 77 28 |if (Fron|tWindow(|
|00002eb0| 29 20 3d 3d 20 66 57 68 | 69 63 68 57 69 6e 64 6f |) == fWh|ichWindo|
|00002ec0| 77 29 0d 09 09 09 20 20 | 62 72 65 61 6b 3b 0d 09 |w).... |break;..|
|00002ed0| 09 20 20 7d 0d 09 20 20 | 7d 0d 09 66 44 6f 6e 65 |. }.. |}..fDone|
|00002ee0| 20 3d 20 74 72 75 65 3b | 0d 09 66 57 68 69 63 68 | = true;|..fWhich|
|00002ef0| 57 69 6e 64 6f 77 20 3d | 20 6e 69 6c 3b 0d 09 66 |Window =| nil;..f|
|00002f00| 43 75 72 44 6f 63 20 3d | 20 6e 69 6c 3b 0d 7d 0d |CurDoc =| nil;.}.|
|00002f10| 0d 42 6f 6f 6c 65 61 6e | 20 54 41 70 70 6c 69 63 |.Boolean| TApplic|
|00002f20| 61 74 69 6f 6e 3a 3a 54 | 72 61 70 41 76 61 69 6c |ation::T|rapAvail|
|00002f30| 61 62 6c 65 28 73 68 6f | 72 74 20 74 4e 75 6d 62 |able(sho|rt tNumb|
|00002f40| 65 72 2c 54 72 61 70 54 | 79 70 65 20 74 54 79 70 |er,TrapT|ype tTyp|
|00002f50| 65 29 0d 7b 0d 09 2f 2f | 20 43 68 65 63 6b 20 61 |e).{..//| Check a|
|00002f60| 6e 64 20 73 65 65 20 69 | 66 20 74 68 65 20 74 72 |nd see i|f the tr|
|00002f70| 61 70 20 65 78 69 73 74 | 73 2e 20 4f 6e 20 36 34 |ap exist|s. On 64|
|00002f80| 4b 20 52 4f 4d 20 6d 61 | 63 68 69 6e 65 73 2c 20 |K ROM ma|chines, |
|00002f90| 74 54 79 70 65 20 77 69 | 6c 6c 20 62 65 20 69 67 |tType wi|ll be ig|
|00002fa0| 6e 6f 72 65 64 2e 0d 09 | 72 65 74 75 72 6e 20 4e |nored...|return N|
|00002fb0| 47 65 74 54 72 61 70 41 | 64 64 72 65 73 73 28 74 |GetTrapA|ddress(t|
|00002fc0| 4e 75 6d 62 65 72 2c 20 | 74 54 79 70 65 29 20 21 |Number, |tType) !|
|00002fd0| 3d 20 47 65 74 54 72 61 | 70 41 64 64 72 65 73 73 |= GetTra|pAddress|
|00002fe0| 28 5f 55 6e 69 6d 70 6c | 65 6d 65 6e 74 65 64 29 |(_Unimpl|emented)|
|00002ff0| 3b 0d 7d 0d 0d 76 6f 69 | 64 20 54 41 70 70 6c 69 |;.}..voi|d TAppli|
|00003000| 63 61 74 69 6f 6e 3a 3a | 57 44 54 6f 44 69 72 49 |cation::|WDToDirI|
|00003010| 44 28 73 68 6f 72 74 20 | 77 64 52 65 66 4e 75 6d |D(short |wdRefNum|
|00003020| 2c 20 73 68 6f 72 74 26 | 20 76 52 65 66 4e 75 6d |, short&| vRefNum|
|00003030| 2c 20 6c 6f 6e 67 26 20 | 64 69 72 49 44 29 0d 7b |, long& |dirID).{|
|00003040| 0d 09 63 6f 6e 73 74 20 | 73 68 6f 72 74 20 6b 52 |..const |short kR|
|00003050| 6f 6f 74 44 69 72 49 44 | 20 3d 20 32 3b 0d 09 6c |ootDirID| = 2;..l|
|00003060| 6f 6e 67 20 6a 75 6e 6b | 3b 0d 0d 09 4f 53 45 72 |ong junk|;...OSEr|
|00003070| 72 20 65 72 72 20 3d 20 | 47 65 74 57 44 49 6e 66 |r err = |GetWDInf|
|00003080| 6f 28 77 64 52 65 66 4e | 75 6d 2c 26 76 52 65 66 |o(wdRefN|um,&vRef|
|00003090| 4e 75 6d 2c 26 64 69 72 | 49 44 2c 26 6a 75 6e 6b |Num,&dir|ID,&junk|
|000030a0| 29 3b 0d 09 69 66 20 28 | 65 72 72 20 21 3d 20 6e |);..if (|err != n|
|000030b0| 6f 45 72 72 29 0d 09 20 | 20 7b 0d 09 09 76 52 65 |oErr).. | {...vRe|
|000030c0| 66 4e 75 6d 20 3d 20 77 | 64 52 65 66 4e 75 6d 3b |fNum = w|dRefNum;|
|000030d0| 09 09 2f 2f 20 69 66 20 | 47 65 74 56 6f 6c 20 64 |..// if |GetVol d|
|000030e0| 6f 65 73 6e 27 74 20 72 | 65 74 75 72 6e 20 76 61 |oesn't r|eturn va|
|000030f0| 6c 69 64 20 76 52 65 66 | 4e 75 6d 2f 64 69 72 49 |lid vRef|Num/dirI|
|00003100| 44 20 70 61 69 72 2c 0d | 09 09 64 69 72 49 44 20 |D pair,.|..dirID |
|00003110| 3d 20 6b 52 6f 6f 74 44 | 69 72 49 44 3b 09 09 2f |= kRootD|irID;../|
|00003120| 2f 20 75 73 65 20 77 64 | 52 65 66 4e 75 6d 20 61 |/ use wd|RefNum a|
|00003130| 73 20 61 20 76 52 65 66 | 4e 75 6d 20 61 6e 64 20 |s a vRef|Num and |
|00003140| 75 73 65 20 72 6f 6f 74 | 20 66 6f 72 20 64 69 72 |use root| for dir|
|00003150| 49 44 0d 09 20 20 7d 0d | 7d 0d 0d 76 6f 69 64 20 |ID.. }.|}..void |
|00003160| 41 6c 65 72 74 55 73 65 | 72 28 73 68 6f 72 74 20 |AlertUse|r(short |
|00003170| 65 72 72 52 65 73 49 44 | 2c 20 73 68 6f 72 74 20 |errResID|, short |
|00003180| 65 72 72 43 6f 64 65 29 | 0d 7b 0d 09 53 74 72 32 |errCode)|.{..Str2|
|00003190| 35 35 20 6d 65 73 73 61 | 67 65 53 74 72 3b 0d 0d |55 messa|geStr;..|
|000031a0| 09 2f 2f 20 69 66 20 77 | 65 20 68 61 76 65 20 61 |.// if w|e have a|
|000031b0| 20 68 69 6c 69 74 65 64 | 20 6d 65 6e 75 2c 20 74 | hilited| menu, t|
|000031c0| 75 72 6e 20 69 74 20 6f | 66 66 20 62 65 66 6f 72 |urn it o|ff befor|
|000031d0| 65 20 64 69 73 70 6c 61 | 79 69 6e 67 20 61 6c 65 |e displa|ying ale|
|000031e0| 72 74 0d 09 48 69 6c 69 | 74 65 4d 65 6e 75 28 30 |rt..Hili|teMenu(0|
|000031f0| 29 3b 0d 0d 09 69 66 20 | 28 65 72 72 52 65 73 49 |);...if |(errResI|
|00003200| 44 20 21 3d 20 30 29 0d | 09 20 20 7b 0d 09 09 47 |D != 0).|. {...G|
|00003210| 65 74 49 6e 64 53 74 72 | 69 6e 67 28 6d 65 73 73 |etIndStr|ing(mess|
|00003220| 61 67 65 53 74 72 2c 20 | 65 72 72 52 65 73 49 44 |ageStr, |errResID|
|00003230| 2c 20 65 72 72 43 6f 64 | 65 29 3b 0d 09 09 50 61 |, errCod|e);...Pa|
|00003240| 72 61 6d 54 65 78 74 28 | 6d 65 73 73 61 67 65 53 |ramText(|messageS|
|00003250| 74 72 2c 20 22 5c 70 22 | 2c 20 22 5c 70 22 2c 20 |tr, "\p"|, "\p", |
|00003260| 22 5c 70 22 29 3b 0d 09 | 20 20 7d 0d 09 65 6c 73 |"\p");..| }..els|
|00003270| 65 0d 09 20 20 7b 0d 09 | 09 2f 2f 20 77 65 20 6e |e.. {..|.// we n|
|00003280| 65 65 64 20 74 6f 20 6c | 6f 6f 6b 75 70 20 74 68 |eed to l|ookup th|
|00003290| 65 20 65 72 72 6f 72 20 | 69 6e 20 6f 75 72 20 74 |e error |in our t|
|000032a0| 61 62 6c 65 0d 09 09 4c | 6f 6f 6b 75 70 45 72 72 |able...L|ookupErr|
|000032b0| 6f 72 53 74 72 69 6e 67 | 28 65 72 72 43 6f 64 65 |orString|(errCode|
|000032c0| 2c 6b 53 79 73 45 72 72 | 53 74 72 69 6e 67 73 2c |,kSysErr|Strings,|
|000032d0| 6d 65 73 73 61 67 65 53 | 74 72 29 3b 0d 09 09 50 |messageS|tr);...P|
|000032e0| 61 72 61 6d 54 65 78 74 | 28 6d 65 73 73 61 67 65 |aramText|(message|
|000032f0| 53 74 72 2c 20 22 5c 70 | 22 2c 20 22 5c 70 22 2c |Str, "\p|", "\p",|
|00003300| 20 22 5c 70 22 29 3b 0d | 09 20 20 7d 0d 09 53 65 | "\p");.|. }..Se|
|00003310| 74 43 75 72 73 6f 72 28 | 26 71 64 2e 61 72 72 6f |tCursor(|&qd.arro|
|00003320| 77 29 3b 0d 09 28 76 6f | 69 64 29 20 41 6c 65 72 |w);..(vo|id) Aler|
|00003330| 74 28 72 55 73 65 72 41 | 6c 65 72 74 2c 20 28 4d |t(rUserA|lert, (M|
|00003340| 6f 64 61 6c 46 69 6c 74 | 65 72 50 72 6f 63 50 74 |odalFilt|erProcPt|
|00003350| 72 29 20 6e 69 6c 29 3b | 0d 7d 0d 0d 76 6f 69 64 |r) nil);|.}..void|
|00003360| 20 42 69 67 42 61 64 45 | 72 72 6f 72 28 73 68 6f | BigBadE|rror(sho|
|00003370| 72 74 20 65 72 72 52 65 | 73 49 44 2c 20 73 68 6f |rt errRe|sID, sho|
|00003380| 72 74 20 65 72 72 43 6f | 64 65 29 0d 7b 0d 09 41 |rt errCo|de).{..A|
|00003390| 6c 65 72 74 55 73 65 72 | 28 65 72 72 52 65 73 49 |lertUser|(errResI|
|000033a0| 44 2c 65 72 72 43 6f 64 | 65 29 3b 0d 09 45 78 69 |D,errCod|e);..Exi|
|000033b0| 74 54 6f 53 68 65 6c 6c | 28 29 3b 0d 7d 0d 0d 42 |tToShell|();.}..B|
|000033c0| 6f 6f 6c 65 61 6e 20 4c | 6f 6f 6b 75 70 45 72 72 |oolean L|ookupErr|
|000033d0| 6f 72 53 74 72 69 6e 67 | 28 73 68 6f 72 74 20 76 |orString|(short v|
|000033e0| 61 6c 75 65 2c 20 73 68 | 6f 72 74 20 72 65 73 49 |alue, sh|ort resI|
|000033f0| 44 2c 20 53 74 72 69 6e | 67 50 74 72 20 73 74 72 |D, Strin|gPtr str|
|00003400| 29 0d 7b 0d 09 73 74 72 | 75 63 74 20 45 72 72 52 |).{..str|uct ErrR|
|00003410| 65 63 6f 72 64 20 7b 0d | 09 09 73 68 6f 72 74 20 |ecord {.|..short |
|00003420| 6c 6f 77 45 72 72 3b 0d | 09 09 73 68 6f 72 74 20 |lowErr;.|..short |
|00003430| 68 69 67 68 45 72 72 3b | 0d 09 09 73 68 6f 72 74 |highErr;|...short|
|00003440| 20 69 6e 64 65 78 3b 0d | 09 7d 3b 0d 09 74 79 70 | index;.|.};..typ|
|00003450| 65 64 65 66 20 73 74 72 | 75 63 74 20 45 72 72 52 |edef str|uct ErrR|
|00003460| 65 63 6f 72 64 2a 20 45 | 72 72 52 65 63 6f 72 64 |ecord* E|rrRecord|
|00003470| 50 74 72 3b 0d 0d 09 48 | 61 6e 64 6c 65 09 09 09 |Ptr;...H|andle...|
|00003480| 74 61 62 6c 65 3b 0d 09 | 45 72 72 52 65 63 6f 72 |table;..|ErrRecor|
|00003490| 64 50 74 72 09 70 45 6e | 74 72 79 3b 0d 09 75 6e |dPtr.pEn|try;..un|
|000034a0| 73 69 67 6e 65 64 20 6c | 6f 6e 67 09 74 61 62 6c |signed l|ong.tabl|
|000034b0| 65 4f 66 66 73 65 74 3b | 0d 09 6c 6f 6e 67 09 09 |eOffset;|..long..|
|000034c0| 09 6c 65 6e 54 61 62 3b | 0d 09 69 6e 74 09 09 09 |.lenTab;|..int...|
|000034d0| 09 73 74 72 49 44 3b 0d | 0d 09 2f 2f 20 73 74 61 |.strID;.|..// sta|
|000034e0| 72 74 20 77 69 74 68 20 | 61 6e 20 65 6d 70 74 79 |rt with |an empty|
|000034f0| 20 73 74 72 69 6e 67 0d | 09 73 74 72 5b 30 5d 20 | string.|.str[0] |
|00003500| 3d 20 30 3b 0d 0d 09 74 | 61 62 6c 65 20 3d 20 47 |= 0;...t|able = G|
|00003510| 65 74 52 65 73 6f 75 72 | 63 65 28 27 65 72 72 73 |etResour|ce('errs|
|00003520| 27 2c 20 72 65 73 49 44 | 29 3b 0d 09 69 66 20 28 |', resID|);..if (|
|00003530| 21 74 61 62 6c 65 29 0d | 09 20 20 7b 0d 09 09 6c |!table).|. {...l|
|00003540| 65 6e 54 61 62 20 3d 20 | 28 6c 6f 6e 67 29 20 28 |enTab = |(long) (|
|00003550| 47 65 74 48 61 6e 64 6c | 65 53 69 7a 65 28 28 48 |GetHandl|eSize((H|
|00003560| 61 6e 64 6c 65 29 20 74 | 61 62 6c 65 29 20 2f 20 |andle) t|able) / |
|00003570| 73 69 7a 65 6f 66 28 45 | 72 72 52 65 63 6f 72 64 |sizeof(E|rrRecord|
|00003580| 29 29 3b 0d 0d 09 09 73 | 74 72 49 44 20 3d 20 30 |));....s|trID = 0|
|00003590| 3b 0d 09 09 74 61 62 6c | 65 4f 66 66 73 65 74 20 |;...tabl|eOffset |
|000035a0| 3d 20 30 3b 0d 0d 09 09 | 66 6f 72 20 28 6c 6f 6e |= 0;....|for (lon|
|000035b0| 67 20 69 20 3d 20 31 3b | 20 69 20 3c 3d 20 6c 65 |g i = 1;| i <= le|
|000035c0| 6e 54 61 62 3b 20 69 2b | 2b 29 0d 09 09 20 20 7b |nTab; i+|+)... {|
|000035d0| 0d 09 09 09 70 45 6e 74 | 72 79 20 3d 20 28 45 72 |....pEnt|ry = (Er|
|000035e0| 72 52 65 63 6f 72 64 50 | 74 72 29 20 28 28 75 6e |rRecordP|tr) ((un|
|000035f0| 73 69 67 6e 65 64 20 6c | 6f 6e 67 29 20 2a 74 61 |signed l|ong) *ta|
|00003600| 62 6c 65 29 20 2b 20 74 | 61 62 6c 65 4f 66 66 73 |ble) + t|ableOffs|
|00003610| 65 74 3b 0d 0d 09 09 09 | 69 66 20 28 70 45 6e 74 |et;.....|if (pEnt|
|00003620| 72 79 2d 3e 6c 6f 77 45 | 72 72 20 3d 3d 20 30 29 |ry->lowE|rr == 0)|
|00003630| 0d 09 09 09 20 20 73 74 | 72 49 44 20 3d 20 70 45 |.... st|rID = pE|
|00003640| 6e 74 72 79 2d 3e 69 6e | 64 65 78 3b 0d 09 09 09 |ntry->in|dex;....|
|00003650| 65 6c 73 65 20 69 66 20 | 28 28 70 45 6e 74 72 79 |else if |((pEntry|
|00003660| 2d 3e 6c 6f 77 45 72 72 | 20 3c 3d 20 76 61 6c 75 |->lowErr| <= valu|
|00003670| 65 29 20 26 26 20 28 76 | 61 6c 75 65 20 3c 3d 20 |e) && (v|alue <= |
|00003680| 70 45 6e 74 72 79 2d 3e | 68 69 67 68 45 72 72 29 |pEntry->|highErr)|
|00003690| 29 0d 09 09 09 20 20 7b | 0d 09 09 09 09 69 66 20 |).... {|.....if |
|000036a0| 28 70 45 6e 74 72 79 2d | 3e 69 6e 64 65 78 20 3e |(pEntry-|>index >|
|000036b0| 20 30 29 0d 09 09 09 09 | 20 20 47 65 74 49 6e 64 | 0).....| GetInd|
|000036c0| 53 74 72 69 6e 67 28 73 | 74 72 2c 20 73 74 72 49 |String(s|tr, strI|
|000036d0| 44 2c 20 70 45 6e 74 72 | 79 2d 3e 69 6e 64 65 78 |D, pEntr|y->index|
|000036e0| 29 3b 0d 09 09 09 09 72 | 65 74 75 72 6e 20 74 72 |);.....r|eturn tr|
|000036f0| 75 65 3b 0d 09 09 09 20 | 20 7d 0d 0d 09 09 09 74 |ue;.... | }.....t|
|00003700| 61 62 6c 65 4f 66 66 73 | 65 74 20 2b 3d 20 73 69 |ableOffs|et += si|
|00003710| 7a 65 6f 66 28 45 72 72 | 52 65 63 6f 72 64 29 3b |zeof(Err|Record);|
|00003720| 0d 09 09 20 20 7d 0d 09 | 20 20 7d 0d 09 72 65 74 |... }..| }..ret|
|00003730| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 7d 0d 0d 2f 2f |urn fals|e;.}..//|
|00003740| 20 54 68 61 74 27 73 20 | 61 6c 6c 2c 20 66 6f 6c | That's |all, fol|
|00003750| 6b 73 2e 2e 2e 0d 00 00 | 00 00 00 00 00 00 00 00 |ks......|........|
|00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003780| 00 00 01 00 00 00 04 48 | 00 00 03 48 00 00 00 4a |.......H|...H...J|
|00003790| 74 75 61 6c 20 76 6f 69 | 64 20 44 69 73 6b 45 76 |tual voi|d DiskEv|
|000037a0| 74 28 29 20 7b 7d 0d 09 | 76 69 72 74 75 61 6c 20 |t() {}..|virtual |
|000037b0| 0e 41 70 70 6c 69 63 61 | 74 69 6f 6e 2e 63 70 41 |.Applica|tion.cpA|
|000037c0| 02 00 00 00 54 45 58 54 | 4d 50 53 20 01 00 00 34 |....TEXT|MPS ...4|
|000037d0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 34 00 40 |..TEXTMP|S ...4.@|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 a0 45 60 50 00 00 | 36 d6 00 00 04 92 7b 7d |...E`P..|6.....{}|
|00003800| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 20 41 |..virtua|l void A|
|00003810| 70 70 31 45 76 74 28 29 | 20 7b 7d 0d 09 76 69 72 |pp1Evt()| {}..vir|
|00003820| 74 75 61 6c 20 76 6f 69 | 64 20 41 70 70 32 45 76 |tual voi|d App2Ev|
|00003830| 74 28 29 20 7b 7d 0d 09 | 76 69 72 74 75 61 6c 20 |t() {}..|virtual |
|00003840| 76 6f 69 64 20 41 70 70 | 33 45 76 74 28 29 20 7b |void App|3Evt() {|
|00003850| 7d 0d 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 20 |}..virtu|al void |
|00003860| 41 70 70 34 45 76 74 28 | 29 20 7b 7d 0d 09 76 69 |App4Evt(|) {}..vi|
|00003870| 72 74 75 61 6c 20 76 6f | 69 64 20 4e 75 6c 6c 45 |rtual vo|id NullE|
|00003880| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00003890| 00 00 00 00 00 00 00 60 | 02 60 02 61 7f ff 01 28 |.......`|.`.a...(|
|000038a0| 00 06 02 60 7f ff 00 06 | 00 04 00 78 00 18 01 8d |...`....|...x....|
|000038b0| 02 3d 00 78 00 18 01 8d | 02 3d a6 3b 37 70 00 00 |.=.x....|.=.;7p..|
|000038c0| 11 79 00 00 11 87 00 00 | 02 5c 01 00 00 00 02 d6 |.y......|.\......|
|000038d0| 00 17 00 00 0a d6 00 00 | 0a f0 1b 54 41 70 70 6c |........|...TAppl|
|000038e0| 69 63 61 74 69 6f 6e 3a | 3a 54 41 70 70 6c 69 63 |ication:|:TApplic|
|000038f0| 61 74 69 6f 6e 00 00 00 | 11 ab 00 00 11 c2 17 54 |ation...|.......T|
|00003900| 41 70 70 6c 69 63 61 74 | 69 6f 6e 3a 3a 45 76 65 |Applicat|ion::Eve|
|00003910| 6e 74 4c 6f 6f 70 00 00 | 14 db 00 00 14 f5 1b 54 |ntLoop..|.......T|
|00003920| 41 70 70 6c 69 63 61 74 | 69 6f 6e 3a 3a 50 72 6f |Applicat|ion::Pro|
|00003930| 63 65 73 73 45 76 65 6e | 74 00 00 00 18 b8 00 00 |cessEven|t.......|
|00003940| 18 cf 17 54 41 70 70 6c | 69 63 61 74 69 6f 6e 3a |...TAppl|ication:|
|00003950| 3a 44 6f 4b 65 79 44 6f | 77 6e 00 00 18 b8 00 00 |:DoKeyDo|wn......|
|00003960| 18 cf 15 54 41 70 70 6c | 69 63 61 74 69 6f 6e 3a |...TAppl|ication:|
|00003970| 3a 4b 65 79 44 6f 77 6e | 00 00 1b 38 00 00 1b 53 |:KeyDown|...8...S|
|00003980| 1b 54 41 70 70 6c 69 63 | 61 74 69 6f 6e 3a 3a 44 |.TApplic|ation::D|
|00003990| 6f 41 63 74 69 76 61 74 | 65 45 76 74 00 00 1b 38 |oActivat|eEvt...8|
|000039a0| 00 00 1b 53 19 54 41 70 | 70 6c 69 63 61 74 69 6f |...S.TAp|plicatio|
|000039b0| 6e 3a 3a 41 63 74 69 76 | 61 74 65 45 76 74 00 00 |n::Activ|ateEvt..|
|000039c0| 1c 77 00 00 1c 90 19 54 | 41 70 70 6c 69 63 61 74 |.w.....T|Applicat|
|000039d0| 69 6f 6e 3a 3a 44 6f 55 | 70 64 61 74 65 45 76 74 |ion::DoU|pdateEvt|
|000039e0| 00 00 1e 4b 00 00 1e 62 | 17 54 41 70 70 6c 69 63 |...K...b|.TApplic|
|000039f0| 61 74 69 6f 6e 3a 3a 44 | 6f 53 75 73 70 65 6e 64 |ation::D|oSuspend|
|00003a00| 00 00 1e b3 00 00 1e c9 | 17 54 41 70 70 6c 69 63 |........|.TApplic|
|00003a10| 61 74 69 6f 6e 3a 3a 44 | 6f 52 65 73 75 6d 65 00 |ation::D|oResume.|
|00003a20| 00 00 1f 1a 00 00 1f 31 | 17 54 41 70 70 6c 69 63 |.......1|.TApplic|
|00003a30| 61 74 69 6f 6e 3a 3a 44 | 6f 4f 53 45 76 65 6e 74 |ation::D|oOSEvent|
|00003a40| 00 00 21 4f 00 00 21 68 | 19 54 41 70 70 6c 69 63 |..!O..!h|.TApplic|
|00003a50| 61 74 69 6f 6e 3a 3a 44 | 6f 4d 6f 75 73 65 44 6f |ation::D|oMouseDo|
|00003a60| 77 6e 00 00 25 3d 00 00 | 25 51 15 54 41 70 70 6c |wn..%=..|%Q.TAppl|
|00003a70| 69 63 61 74 69 6f 6e 3a | 3a 44 6f 44 72 61 67 00 |ication:|:DoDrag.|
|00003a80| 00 00 25 a1 00 00 25 b7 | 17 54 41 70 70 6c 69 63 |..%...%.|.TApplic|
|00003a90| 61 74 69 6f 6e 3a 3a 44 | 6f 47 6f 41 77 61 79 00 |ation::D|oGoAway.|
|00003aa0| 00 00 27 c9 00 00 27 e2 | 19 54 41 70 70 6c 69 63 |..'...'.|.TApplic|
|00003ab0| 61 74 69 6f 6e 3a 3a 50 | 72 6f 63 65 73 73 41 72 |ation::P|rocessAr|
|00003ac0| 67 73 00 00 2a 89 00 00 | 2a 9d 15 54 41 70 70 6c |gs..*...|*..TAppl|
|00003ad0| 69 63 61 74 69 6f 6e 3a | 3a 44 6f 51 75 69 74 00 |ication:|:DoQuit.|
|00003ae0| 00 00 2e 99 00 00 2e b4 | 1b 54 41 70 70 6c 69 63 |........|.TApplic|
|00003af0| 61 74 69 6f 6e 3a 3a 54 | 72 61 70 41 76 61 69 6c |ation::T|rapAvail|
|00003b00| 61 62 6c 65 00 00 2f 7a | 00 00 2f 91 17 54 41 70 |able../z|../..TAp|
|00003b10| 70 6c 69 63 61 74 69 6f | 6e 3a 3a 57 44 54 6f 44 |plicatio|n::WDToD|
|00003b20| 69 72 49 44 00 00 30 e0 | 00 00 30 e9 09 41 6c 65 |irID..0.|..0..Ale|
|00003b30| 72 74 55 73 65 72 00 00 | 30 e0 00 00 30 e9 17 54 |rtUser..|0...0..T|
|00003b40| 41 70 70 6c 69 63 61 74 | 69 6f 6e 3a 3a 41 6c 65 |Applicat|ion::Ale|
|00003b50| 72 74 55 73 65 72 00 00 | 32 e1 00 00 32 ec 0b 42 |rtUser..|2...2..B|
|00003b60| 69 67 42 61 64 45 72 72 | 6f 72 00 00 32 e1 00 00 |igBadErr|or..2...|
|00003b70| 32 ec 19 54 41 70 70 6c | 69 63 61 74 69 6f 6e 3a |2..TAppl|ication:|
|00003b80| 3a 42 69 67 42 61 64 45 | 72 72 6f 72 00 00 33 47 |:BigBadE|rror..3G|
|00003b90| 00 00 33 58 11 4c 6f 6f | 6b 75 70 45 72 72 6f 72 |..3X.Loo|kupError|
|00003ba0| 53 74 72 69 6e 67 00 00 | 00 1e 00 78 00 18 01 8d |String..|...x....|
|00003bb0| 02 3d 00 78 00 18 01 8d | 02 3d 00 00 02 5c 00 00 |.=.x....|.=...\..|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 04 48 |........|.......H|
|00003bd0| 00 00 03 48 00 00 00 4a | 00 3f 56 b8 0a 4a 00 00 |...H...J|.?V..J..|
|00003be0| 00 1c 00 4a 00 00 4d 50 | 53 52 00 02 00 0a 03 ed |...J..MP|SR......|
|00003bf0| ff ff 00 00 00 00 00 00 | 00 00 03 ef ff ff 00 00 |........|........|
|00003c00| 00 4c 00 00 00 00 03 f0 | ff ff 00 00 03 26 00 45 |.L......|.....&.E|
|00003c10| 56 2c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |V,......|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+